-
Notifications
You must be signed in to change notification settings - Fork 13.4k
move temporary_cstring_as_ptr
from clippy to rustc
#34111
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
Comments
We are different aka-demik's ;) |
New lints pretty much require RFCs these days. |
Or we could just deprecate the method (with a message warning of the potential for misuse) and provide |
rust-lang/rfcs#1642 submitted. |
Let's continue further discussion on the rfc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Quoting the docs of the lint:
@akademiksomeone found in a recent discussion that there are hundreds of.unwrap().as_ptr()
calls to be found on github (not all of them UB, but many).I believe this amount of accidental UB is reason enough to add a "new" lint to rustc that prevents misusing this specific easy-to-misuse method.
The text was updated successfully, but these errors were encountered: