Skip to content

move borrow-of-packed-field unsafety check out of loop #72269

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

Merged
merged 1 commit into from
May 18, 2020

Conversation

RalfJung
Copy link
Member

Looks like during the place refactoring, this code somehow got into this loop even though it does not actually depend on the loop variables.

@rust-highfive
Copy link
Contributor

r? @matthewjasper

(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 May 16, 2020
@Mark-Simulacrum
Copy link
Member

@bors r+

Looks correct to me -- I wonder if we could engineer a clippy lint or something for this. Probably not worth it though.

@bors
Copy link
Collaborator

bors commented May 16, 2020

📌 Commit 07d5971 has been approved by Mark-Simulacrum

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 16, 2020
@bors
Copy link
Collaborator

bors commented May 18, 2020

⌛ Testing commit 07d5971 with merge 35d8669...

@bors
Copy link
Collaborator

bors commented May 18, 2020

☀️ Test successful - checks-azure
Approved by: Mark-Simulacrum
Pushing 35d8669 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label May 18, 2020
@bors bors merged commit 35d8669 into rust-lang:master May 18, 2020
@RalfJung RalfJung deleted the unsafe-borrow-of-packed branch May 18, 2020 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants