Skip to content

drop_in_place: weaken the claim of equivalence with drop(ptr.read())#125739

Merged
bors merged 2 commits intorust-lang:masterfrom
RalfJung:drop-in-place-docs
May 30, 2024
Merged

drop_in_place: weaken the claim of equivalence with drop(ptr.read())#125739
bors merged 2 commits intorust-lang:masterfrom
RalfJung:drop-in-place-docs

Conversation

@RalfJung
Copy link
Copy Markdown
Member

The two are not semantically equivalent in all cases, so let's not be so definite about this.

Fixes #112015

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MIRI disagree with the documentation of ptr::drop_in_place

5 participants