-
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
New lint: Raw slice pointer cast #9247
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Alexendoo (or someone else) soon. Please see the contribution instructions for more information. |
Hi @clubby789, welcome to Clippy! The lint looks good, thanks for the PR |
☔ The latest upstream changes (presumably #8957) made this pull request unmergeable. Please resolve the merge conflicts. |
83b46b7
to
1711368
Compare
1711368
to
30979bf
Compare
Co-authored-by: Alex Macleod <alex@macleod.io>
Looks good, thank you for the lint! @bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Adds a lint to check for a raw slice being created and cast back to a pointer, suggesting
ptr::slice_from_raw_parts
, to identify UB such as thomcc/rust-typed-arena#54.