-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Invalid unused export warning on 1.75.0-nightly (cd674d617 2023-10-24) #117120
Comments
Okay, I am very confused, now this got triggered on stable as well: https://github.com/n0-computer/iroh/actions/runs/6625039736/job/17995549252
|
Can reproduce the warning on my local machine using
but
does not trigger it |
This behavior introduced through #116033. And I think this behavior is indeed expected because |
Behavior seems correct, just not very obvious why. Maybe the warning should print out why the symbol might be unused? |
I see, thanks a lot, that was definitely on the confusing side, but glad the compiler catches it now :) |
Agreed, I wonder if it could print out a warning about the shadowing of the reexport. |
Actual issue was a double reexport which went unnoticed in older rustc versions. Thanks to @bvanjoi in rust-lang/rust#117120 (comment) for pointing out the problem
Actual issue was a double reexport which went unnoticed in older rustc versions. Thanks to @bvanjoi in rust-lang/rust#117120 (comment) for pointing out the problem
CI started failing for us, without code changes in this area today with nightly
The code is sth like this
and produces
but it should not, given that this is a public export in
src/lib.rs
.Version with regression
Logs
CI logs: https://github.com/n0-computer/iroh/actions/runs/6624632107/job/17994903346?pr=1708
The text was updated successfully, but these errors were encountered: