-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
rustc incorrectly warn #[no_mangle] is not used when doing incremental build #60050
Comments
I have same error on today's nightly too |
Same for me |
I see the same warning text during a build for crate type “staticlib” using nightly 1.36.0 commit 5d20ff4 2019-04-18 |
I will bisect this and then pass the baton to @oli-obk to fix this. |
My guess is that |
Also our scheme to track unused attributes does not work the incremental compilation, which is probably why it only happens with that. |
A fix is up. I this still nightly only or do we need to backport? |
Seems to be nightly-only still |
…chaelwoerister Fix incremental compilation of cdylib emitting spurious unused_attributes lint fixes rust-lang#60050
@oli-obk I get this with regular |
@elichai can you try with the latest nightly? This was only closed yesterday, so today's nightly should contain the fix. |
My case (#60835) is no longer reproducible on 2019-05-21 nightly. |
I no longer see the |
Yep it seems it's fixed. sorry I missed that it was merged yesterday. thanks! |
Steps to reproduce:
cdylib
src/lib.rs
:cargo build --verbose
rustc
command line used from above step, and run it as-isexample:
As you can see, the first time
cargo build
in step 3) has no warnings, however, step 4) causerustc
complains#[no_mangle]
is unused, which isn't true.Step 4) can be replaced by:
src/lib.rs
, so that it cause rebuildcargo build
againrustc 1.35.0-nightly (70f1309 2019-04-16)
The text was updated successfully, but these errors were encountered: