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

Document that calling Drop, even after it panics, is UB #67559

Merged
merged 1 commit into from
Dec 23, 2019

Conversation

Mark-Simulacrum
Copy link
Member

@Mark-Simulacrum Mark-Simulacrum commented Dec 23, 2019

Fixes #60822.

r? @gnzlbg

Copy link
Contributor

@gnzlbg gnzlbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JohnTitor JohnTitor added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 23, 2019
src/libcore/ops/drop.rs Outdated Show resolved Hide resolved
@RalfJung
Copy link
Member

LGTM with the nit fixed.

@Centril
Copy link
Contributor

Centril commented Dec 23, 2019

r? @RalfJung @bors r=RalfJung rollup

@bors
Copy link
Contributor

bors commented Dec 23, 2019

📌 Commit 32a2e2cbf4da559dd55923af29d26a660a3f7131 has been approved by RalfJung

@bors
Copy link
Contributor

bors commented Dec 23, 2019

🌲 The tree is currently closed for pull requests below priority 100, this pull request will be tested once the tree is reopened

@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 Dec 23, 2019
@Mark-Simulacrum
Copy link
Member Author

@bors r=RalfJung

Squashed the fixup commit.

@bors
Copy link
Contributor

bors commented Dec 23, 2019

📌 Commit a08df28 has been approved by RalfJung

@bors
Copy link
Contributor

bors commented Dec 23, 2019

🌲 The tree is currently closed for pull requests below priority 100, this pull request will be tested once the tree is reopened

Centril added a commit to Centril/rust that referenced this pull request Dec 23, 2019
Document that calling Drop, even after it panics, is UB

Fixes rust-lang#60822.

r? @gnzlbg
bors added a commit that referenced this pull request Dec 23, 2019
Rollup of 8 pull requests

Successful merges:

 - #67233 (Add PartialEq and Eq to Cursor)
 - #67466 (Require const stability attributes on intrinsics to be able to use them in constant contexts)
 - #67507 (Remove mem::uninitalized from tests)
 - #67527 (Results show too much)
 - #67536 (Move `{hir::lowering -> hir}::is_range_literal`)
 - #67538 (Improve diagnostics for invalid assignment)
 - #67546 (Fix ICE in mir interpretation)
 - #67559 (Document that calling Drop, even after it panics, is UB)

Failed merges:

r? @ghost
@bors bors merged commit a08df28 into rust-lang:master Dec 23, 2019
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop impl of Vec is not idempotent and this is not documented
6 participants