-
Notifications
You must be signed in to change notification settings - Fork 13.3k
#[no_mangle] is silently ignored on generic fns #15844
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
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
Comments
I think an explicit "generic functions must be mangled" warning/error would be better than just the unused attribute one (this should cover |
Ah, this is one of the attributes that are globally whitelisted because the unused attribute lint runs before trans :( |
Triage: no change. Still doesn't warn. |
bors
added a commit
that referenced
this issue
Dec 16, 2015
Fix #15844. Should the default be Deny instead?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With a definition like this:
the compiler does not and cannot un-mangle foo, but it does not give any indication of this. It should probably give an unused_attribute warning.
The text was updated successfully, but these errors were encountered: