-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Enable unreachable_pub lint in core
#134286
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
Conversation
This comment has been minimized.
This comment has been minimized.
ea66587 to
1001c68
Compare
This comment has been minimized.
This comment has been minimized.
1001c68 to
9f3e1d8
Compare
This comment has been minimized.
This comment has been minimized.
9f3e1d8 to
8a52a33
Compare
This comment has been minimized.
This comment has been minimized.
8a52a33 to
3b475dd
Compare
|
This seems reasonable to me, does it need libs signoff? |
|
I don't know T-libs customs around enabling new lints. Given that T-compiler as done an MCP I guess it doesn't hurt to at least nominate it. @rustbot labels -S-waiting-on-review +S-waiting-on-team +I-libs-nominated |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
ef31b57 to
2fa6dbc
Compare
|
We discussed this in the libs meeting today, overall several people were in favor of enabling the lint and nobody objected. |
|
@bors r+ |
|
Finished benchmarking commit (a42d5ec): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (secondary -2.5%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 764.999s -> 765.476s (0.06%) |
This PR enables the
unreachable_pubas warn incore,rtstartupandpanic_unwind.The motivation is similar to the compiler MCP: Enable deny(unreachable_pub) on
rustc_*crates :Another motivation is to help to lint by utilizing it in-tree and seeing it's limitation in more complex scenarios.
The diff was mostly generated with
./x.py fix --stage 1 library/core/ -- --broken-code, as well as manual edits for code in macros, generated code and other targets.r? libs