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

show warning when Stacked Borrows skips a reborrow due to 'extern type' #3701

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Jun 22, 2024

When this happens, we can't actually be sure to catch all bugs -- LLVM will still get a noalias but Miri can't do reborrowing. That's not good.

@bors

This comment was marked as resolved.

@RalfJung RalfJung added the S-waiting-on-author Status: Waiting for the PR author to address review comments label Jul 6, 2024
@RalfJung
Copy link
Member Author

With rust-lang/rust#127859, this doesn't show any warnings for standard library code any more. :)

@rust-lang/miri what do you think?

src/diagnostics.rs Outdated Show resolved Hide resolved
@saethlin
Copy link
Member

I think you want to update the PR description a bit. I support having a warning for this, and won't complain much if you prefer your current wording :p

@RalfJung
Copy link
Member Author

All right, let's go with this then. :)

@bors r=saethlin

@bors
Copy link
Contributor

bors commented Jul 24, 2024

📌 Commit 9aa0893 has been approved by saethlin

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jul 24, 2024

⌛ Testing commit 9aa0893 with merge b10b02f...

@bors
Copy link
Contributor

bors commented Jul 24, 2024

☀️ Test successful - checks-actions
Approved by: saethlin
Pushing b10b02f to master...

@bors bors merged commit b10b02f into rust-lang:master Jul 24, 2024
8 checks passed
@RalfJung RalfJung deleted the extern-type-reborrow branch July 25, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: Waiting for the PR author to address review comments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants