From dcbf4ec2a1cfd9f521c96b9dab62a2d27ded1b24 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 17 Jun 2014 16:00:04 -0700 Subject: 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] --- src/libstd/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/libstd/lib.rs') diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 695c61efcf0..a99fa016aef 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -103,14 +103,16 @@ 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(macro_rules, globs, managed_boxes, - linkage, default_type_params, phase)] + +#![feature(macro_rules, globs, managed_boxes)] +#![feature(linkage, default_type_params, phase, unsafe_destructor)] // Don't link to std. We are std. #![no_std] #![allow(deprecated)] #![deny(missing_doc)] +#![allow(unknown_features)] // NOTE: remove after a stage0 snap // When testing libstd, bring in libuv as the I/O backend so tests can print // things and all of the std::io tests have an I/O interface to run on top -- cgit 1.4.1-3-g733a5