-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
ignored link and crate_type attributes #3348
Comments
Stuff like |
This is likely because of the placement of the crate attributes. As written they are actually being applied to the logging2 mod. This way they will apply to the crate:
I know this is really unintuitive behavior. There's some discussion in #2569. |
Good call. The original code had It is unintuitive which might be OK if the error messages were clear enough to allow users to figure out the problem and the solution, but that is far from the case. |
So, is this actually a bug? Or is it just a consequence of #2569? |
I think misplaced |
log when we change the active thread, and fix logging for concurrency Also avoid relying on the incorrect scope exit logging produced by tracing (Cc rust-lang/miri#2266)
This PR adds basic support for global transformations, which will be useful to implement full support of rust-lang#3324 Changes: - Add edge annotations to the call graph - Implement global transformation pass infrastructure - Implement `dump_mir` as a global transformation pass By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses. --------- Co-authored-by: Celina G. Val <[email protected]>
The project below fails to build using
rustc -o bin/logging2 crate.rc
with errormain function not found
. Ifrustc -o bin/logging2 --lib crate.rc
is used it complains aboutmissing crate link meta 'name', using 'logging2' as default
andmissing crate link meta 'vers', using '0.0' as default
.Makefile:
crate.rc:
logging2.rs:
This is with a rust from master on Sep 1, 2012.
The text was updated successfully, but these errors were encountered: