rust icon indicating copy to clipboard operation
rust copied to clipboard

core::* listed four times in RUST_LOG=?

Open jdm opened this issue 14 years ago • 6 comments

Crate log map:

  core::u64
  core::uint
  core::int
  core::task
  core::str
  std::map::chained
  std::test
  std::ebml
  std::smallintmap
  std::getopts
  std::uv
  std::io
  core::u64
  core::uint
  core::int
  core::task
  core::str
  rustc::util::common
  rustc::middle::resolve
  rustc::back::rpath
  rustc::middle::trans_closure
  rustc::syntax::ext::fmt
  rustc::util::filesearch
  rustc::syntax::parse::lexer
  rustc::middle::fn_usage
  rustc::metadata::csearch
  rustc::middle::tstate::collect_locals
  rustc::middle::ty
  rustc::middle::tstate::bitvectors
  rustc::middle::tstate::pre_post_conditions
  rustc::syntax::parse::eval
  rustc::middle::typeck
  rustc::middle::debuginfo
  rustc::syntax::parse::parser
  rustc::front::attr
  rustc::middle::trans_build
  rustc::middle::tstate::ck
  rustc::middle::tstate::aux
  rustc::syntax::print::pp
  rustc::front::test
  rustc::metadata::cstore
  rustc::lib::llvm
  rustc::metadata::tydecode
  rustc::middle::tstate::annotate
  rustc::metadata::creader
  rustc::middle::trans
  rustc::driver::driver
  rustc::middle::ty::unify
  rustc::back::link
  core::u64
  core::uint
  core::int
  core::task
  core::str
  std::map::chained
  std::test
  std::ebml
  std::smallintmap
  std::getopts
  std::uv
  std::io
  core::u64
  core::uint
  core::int
  core::task
  core::str

jdm avatar Jan 15 '12 17:01 jdm

Core is listed as an included crate for all other crates (in this case, rustc, librustc, and std). The runtime function that lists these should keep a set of visited crates and not descend already-visited ones. The same should probably be done in the function that updates logging flags.

marijnh avatar Jan 25 '12 12:01 marijnh

This appears to be the same bug as #2673, but I'm not totally sure.

catamorphism avatar Aug 02 '12 17:08 catamorphism

This is still a bug. core does not appear at all now, but std::net_ip (for example) is listed four times.

catamorphism avatar Feb 07 '13 20:02 catamorphism

I think I can fix this. but as I know, the rust log system will be replaced with new one. Should this be fixed anyway?

ILyoan avatar Feb 08 '13 04:02 ILyoan

Yes, I think it is worth fixing. Rewriting log is a low priority, and hopefully the same fix can be used then as well. On Feb 7, 2013 8:26 PM, "ILYONG CHO" [email protected] wrote:

I think I can fix this. but as I know, the rust log system will be replaced with new one. Should this be fixed anyway?

— Reply to this email directly or view it on GitHubhttps://github.com/mozilla/rust/issues/1531#issuecomment-13276459.

brson avatar Feb 08 '13 04:02 brson

Fixed in dd41f044da5f8f20798122d2a138ea614600c16e

catamorphism avatar Feb 08 '13 21:02 catamorphism