Skip to content

fix reborrowing of tagged ZST references#1725

Merged
bors merged 1 commit into
rust-lang:masterfrom
RalfJung:zst-reborrow
Feb 27, 2021
Merged

fix reborrowing of tagged ZST references#1725
bors merged 1 commit into
rust-lang:masterfrom
RalfJung:zst-reborrow

Conversation

@RalfJung

Copy link
Copy Markdown
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
Copy Markdown
Member Author

@bors r+

@bors

bors commented Feb 27, 2021

Copy link
Copy Markdown
Contributor

📌 Commit 48f7c8e has been approved by RalfJung

@bors

bors commented Feb 27, 2021

Copy link
Copy Markdown
Contributor

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

@bors

bors commented Feb 27, 2021

Copy link
Copy Markdown
Contributor

☀️ 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