diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-06-17 16:00:04 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2014-06-20 14:24:31 -0700 |
| commit | dcbf4ec2a1cfd9f521c96b9dab62a2d27ded1b24 (patch) | |
| tree | c8a77671439e27d37b6432d25009a3549f02ec67 /src/libsync | |
| parent | 6750eb5a05042fe3fb84708909074f33ad86d3ec (diff) | |
| download | rust-dcbf4ec2a1cfd9f521c96b9dab62a2d27ded1b24.tar.gz rust-dcbf4ec2a1cfd9f521c96b9dab62a2d27ded1b24.zip | |
librustc: Put `#[unsafe_destructor]` behind a feature gate.
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]
Diffstat (limited to 'src/libsync')
| -rw-r--r-- | src/libsync/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsync/lib.rs b/src/libsync/lib.rs index 1336ea48d31..a2f22bcaa68 100644 --- a/src/libsync/lib.rs +++ b/src/libsync/lib.rs @@ -26,10 +26,11 @@ html_favicon_url = "http://www.rust-lang.org/favicon.ico", html_root_url = "http://doc.rust-lang.org/", html_playground_url = "http://play.rust-lang.org/")] -#![feature(phase, globs, macro_rules)] +#![feature(phase, globs, macro_rules, unsafe_destructor)] #![deny(missing_doc)] #![no_std] +#![allow(unknown_features)] // NOTE: remove after a stage0 snap #[phase(plugin, link)] extern crate core; extern crate alloc; |
