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

Fix deref_addrof #8268

Merged
merged 1 commit into from
Jan 12, 2022
Merged

Fix deref_addrof #8268

merged 1 commit into from
Jan 12, 2022

Conversation

Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Jan 12, 2022

fixes #8247

This would supersede #8259

changelog: Don't lint deref_addrof when the dereference and the borrow occur in different contexts

@rust-highfive
Copy link

r? @llogiq

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 12, 2022
@flip1995
Copy link
Member

@bors r+

Thanks!

@bors
Copy link
Collaborator

bors commented Jan 12, 2022

📌 Commit d32277d has been approved by flip1995

@bors
Copy link
Collaborator

bors commented Jan 12, 2022

⌛ Testing commit d32277d with merge 37e9985...

@bors
Copy link
Collaborator

bors commented Jan 12, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing 37e9985 to master...

@bors bors merged commit 37e9985 into rust-lang:master Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deref_addrof should not fire on ptr::addr_of
5 participants