Skip to content

librustc: Put #[unsafe_destructor] behind a feature gate. #14988

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jun 20, 2014

Conversation

pcwalton
Copy link
Contributor

Closes #8142.

This is not the semantics we want long-term. You can continue to use
#[unsafe_destructor], but you'll need to add
#![feature(unsafe_destructor)] to the crate attributes.

[breaking-change]

r? @alexcrichton

@alexcrichton
Copy link
Member

r=me if you add this text next to to the allow directives:

#![allow(unknown_features)] // NOTE: remove after a stage0 snap

Closes rust-lang#8142.

This is not the semantics we want long-term. You can continue to use
`#[unsafe_destructor]`, but you'll need to add
`#![feature(unsafe_destructor)]` to the crate attributes.

[breaking-change]
bors added a commit that referenced this pull request Jun 20, 2014
…r=alexcrichton

Closes #8142.

This is not the semantics we want long-term. You can continue to use
`#[unsafe_destructor]`, but you'll need to add
`#![feature(unsafe_destructor)]` to the crate attributes.

[breaking-change]

r? @alexcrichton
@bors bors closed this Jun 20, 2014
@bors bors merged commit dcbf4ec into rust-lang:master Jun 20, 2014
lnicola pushed a commit to lnicola/rust that referenced this pull request Jun 19, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prohibit specialized drops
3 participants