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 reborrowing of tagged ZST references #1725

Merged
merged 1 commit into from
Feb 27, 2021

Conversation

RalfJung
Copy link
Member

@SkiFire13 pointed out that Miri fails to detect illegal use of empty slices. This PR fixes that. In so doing, it uncovers a flaw of Stacked Borrows: it is incompatible with how the formatting machinery uses extern type, so for now we skip reborrowing when we cannot determine the exact size of the pointee.

@RalfJung
Copy link
Member Author

@bors r+

@bors
Copy link
Collaborator

bors commented Feb 27, 2021

📌 Commit 48f7c8e has been approved by RalfJung

@bors
Copy link
Collaborator

bors commented Feb 27, 2021

⌛ Testing commit 48f7c8e with merge 4ecb5a9...

@bors
Copy link
Collaborator

bors commented Feb 27, 2021

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing 4ecb5a9 to master...

@bors bors merged commit 4ecb5a9 into rust-lang:master Feb 27, 2021
@RalfJung RalfJung deleted the zst-reborrow branch March 2, 2021 09:44
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.

2 participants