about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-06-17 16:00:04 -0700
committerPatrick Walton <pcwalton@mimiga.net>2014-06-20 14:24:31 -0700
commitdcbf4ec2a1cfd9f521c96b9dab62a2d27ded1b24 (patch)
treec8a77671439e27d37b6432d25009a3549f02ec67 /src/libsyntax
parent6750eb5a05042fe3fb84708909074f33ad86d3ec (diff)
downloadrust-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/libsyntax')
-rw-r--r--src/libsyntax/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs
index b18e3a221f9..1fbc6e41e55 100644
--- a/src/libsyntax/lib.rs
+++ b/src/libsyntax/lib.rs
@@ -27,9 +27,10 @@ This API is completely unstable and subject to change.
        html_favicon_url = "http://www.rust-lang.org/favicon.ico",
        html_root_url = "http://doc.rust-lang.org/")]
 
-#![feature(macro_rules, globs, managed_boxes, default_type_params, phase,
-           quote)]
+#![feature(macro_rules, globs, managed_boxes, default_type_params, phase)]
+#![feature(quote, unsafe_destructor)]
 #![allow(deprecated)]
+#![allow(unknown_features)] // NOTE: remove after a stage0 snap
 
 extern crate serialize;
 extern crate term;