-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Add an allow-by-default lint against #[no_mangle] #72188
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
So maybe I am suggesting that because I think |
I've got the basic lint working now. @RalfJung do you think it's worth adding it as a separate lint, renaming |
I'll defer to @rust-lang/wg-diagnostics for that :D |
I am partial towards having a hard error when encountering multiple Adding this to |
There's other ways of using |
Removing I-prioritize since this is already tracked at #28179 |
Is there a tracking issue for additional lints like this to similar "unsafe attributes"? I think that'd be great! |
@tarcieri not that I know of but you could open one :) |
Done #82499 |
Given that
#[no_mangle]
is unsafe there should be a lint that is capable of detecting it (there was a suggestion thatunsafe_code
should also detect it, but it might make sense to be able to lint it individually too).The text was updated successfully, but these errors were encountered: