-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crate name in log map is taken from name of output binary, not the crate name #3346
Comments
This works with RUST_LOG=test-logging2 (the name of the output binary). I'd say this is a bug and we should be using the actual name of the crate. |
Note that 10.0.4 of the reference manual says that the crate name is from the link attribute. |
non-critical for 0.6, de-milestoning |
Nominating for milestone 5, production-ready. With the new version of rustpkg, the crate name doesn't have to be explicitly specified in a link attribute, so that should be taken into account too (in the absence of an explicit crate name, the crate name for logging purposes should be what-rustpkg-would-infer). |
sub-bug of #3309 |
accepted for production-ready milestone |
visiting for triage, email from 2013 sep 23. |
This is actually currently implemented. The test case above has the attribute not as a crate attribute. The Regardless, we do actually use the crate name specified in link attributes as the prefix for logging (maybe this changed between then and now). Closing. |
Add -Zmiri-track-alloc-accesses to readme and fix its wording I forgot that yesterday...
Update Rust toolchain from nightly-2024-07-15 to nightly-2024-07-16 without any other source changes. This is an automatically generated pull request. If any of the CI checks fail, manual intervention is required. In such a case, review the changes at https://github.com/rust-lang/rust from rust-lang@d9284af up to rust-lang@24d2ac0.
I can only get error level logging using the project below, I've tried a bunch of versions of RUST_LOG that I think should work and none do (which is complicated by the fact that rustc --ls is still broken). I've tried:
and more.
Makefile:
crate.rc:
logging2.rs:
This was with a rustc from master on Sep 1, 2012. Note that I was able to get logging working when compiling a stand-alone rs file.
The text was updated successfully, but these errors were encountered: