-
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
Fix invocation of zst_offset
lint
#7396
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Manishearth (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. |
@@ -1,9 +1,52 @@ | |||
error[E0606]: casting `&i32` as `*const u8` is invalid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the invalid cast that prevented testing the actual lint.
@bors r+ thanks! |
📌 Commit 642239c has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
The
zst_offset
lint was broken by a refactoring regression in 2108387. In the invocation of thezst_offset
check here, we shadow the already-destructured receiverrecv
, and accidentally pass the first argument of the method as if it were the receiver.This was not caught because the UI test expectation was never correct (a bad cast obscured the actual test result).
This PR:
const
andmut
raw pointersFixes #7395.
changelog: Fix [
zst_offset
] invocation and test