Skip to content
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

Rewrite each path #7396

Closed
wants to merge 18 commits into from
Closed

Conversation

pcwalton
Copy link
Contributor

@graydon
Copy link
Contributor

graydon commented Jun 26, 2013

\o/ Please feel free to set this as high priority.

@Aatch
Copy link
Contributor

Aatch commented Jun 28, 2013

I've fixed the test and opened my own PR.

@Aatch Aatch closed this Jun 28, 2013
@Aatch Aatch mentioned this pull request Jun 28, 2013
@emberian
Copy link
Member

I've fixed the test and opened my own PR. #7451

@yichoi yichoi mentioned this pull request Jun 29, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 1, 2021
Fix invocation of `zst_offset` lint

The `zst_offset` lint was broken by a refactoring regression in 2108387. In the invocation of the `zst_offset` check [here](rust-lang/rust-clippy@2108387#diff-7f73f6fe28c04b654223c09c42fe02937d2351fc58a91d21ab812aaf6f9b185dR1927), we shadow the already-destructured receiver `recv`, 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:
- Fixes the existing test expectation
- Tests both `const` and `mut` raw pointers
- Passes the actual receiver to the lint's implementation

Fixes rust-lang#7395.

changelog: Fix [`zst_offset`] invocation and test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants