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

Add regression test for #29821 #81843

Merged
merged 1 commit into from
Feb 7, 2021
Merged

Add regression test for #29821 #81843

merged 1 commit into from
Feb 7, 2021

Conversation

bstrie
Copy link
Contributor

@bstrie bstrie commented Feb 6, 2021

Closes #29821

@rust-highfive
Copy link
Collaborator

r? @Mark-Simulacrum

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 6, 2021
@lcnr
Copy link
Contributor

lcnr commented Feb 7, 2021

Afaict we fixed this by not requiring mutable statics to not implement drop as the following now also compiles. Not sure if the underlying issue still exists and whether it can be triggered 🤷

struct Foo(u8);

impl Drop for Foo {
    fn drop(&mut self) {}
}

static mut FOO: Foo = Foo(3);

r? @lcnr
@bors r+ rollup

@bors
Copy link
Contributor

bors commented Feb 7, 2021

📌 Commit d2a3c04 has been approved by lcnr

@rust-highfive rust-highfive assigned lcnr and unassigned Mark-Simulacrum Feb 7, 2021
@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 Feb 7, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 7, 2021
…laumeGomez

Rollup of 5 pull requests

Successful merges:

 - rust-lang#81526 (btree: use Option's unwrap_unchecked())
 - rust-lang#81742 (Add a note about the correctness and the effect on unsafe code to the `ExactSizeIterator` docs)
 - rust-lang#81830 (Add long error explanation for E0542)
 - rust-lang#81835 (Improve long explanation for E0546)
 - rust-lang#81843 (Add regression test for rust-lang#29821)

Failed merges:

 - rust-lang#81836 (Add long explanation for E0547)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 9a82417 into rust-lang:master Feb 7, 2021
@rustbot rustbot added this to the 1.52.0 milestone Feb 7, 2021
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.

An associated type magically adds a destructor?
6 participants