-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Switch transmute_ptr_to_ptr to "pedantic" class. #7102
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @flip1995 (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Per discussion in #6372, this lint has significant false positives.
Moving this lint to @oli-obk wrote in the issue discussing this lint first:
I don't think Clippy should suggest more complicated code which should then implicitly suggest to the programmer that what they're doing may be wrong. Either we say that this is just wrong (which it isn't in all cases) or we remove the lint completely. Or better explain why this lint exists.
Why is that? |
The description on pedantic is that it is for lints that may be incorrect in some cases. That seems to match your complaint above. Have I misunderstood the nature of this category? |
Yea, my opinions have changed since I wrote that. Pedantic sounds right |
Ok, SGTM. @bors r+ Thanks! |
📌 Commit 8b5faf4 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Per discussion in #6372, this lint has significant false positives.
changelog: transmute_ptr_to_ptr defaults to "allow".