about summary refs log tree commit diff
path: root/src/libcollections
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2015-02-11 13:57:40 +0100
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-02-11 13:57:40 +0100
commitf9a1087f2730ab021d5356a5df703baeccffc020 (patch)
treef72d08a0947b2144e09b34066afa46d2ec3d032c /src/libcollections
parent0047f8bbd8f94c7ba54d42eb7272c89a48d6ae54 (diff)
downloadrust-f9a1087f2730ab021d5356a5df703baeccffc020.tar.gz
rust-f9a1087f2730ab021d5356a5df703baeccffc020.zip
Feature-gate the `#[unsafe_no_drop_flag]` attribute.
See RFC 320, "Non-zeroing dynamic drops."

Fix #22173

[breaking-change]
Diffstat (limited to 'src/libcollections')
-rw-r--r--src/libcollections/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcollections/lib.rs b/src/libcollections/lib.rs
index a542ee5d47d..8e73a0c9f80 100644
--- a/src/libcollections/lib.rs
+++ b/src/libcollections/lib.rs
@@ -26,10 +26,12 @@
 #![feature(box_syntax)]
 #![feature(core)]
 #![feature(hash)]
+#![feature(slicing_syntax)]
 #![feature(staged_api)]
 #![feature(unboxed_closures)]
 #![feature(unicode)]
-#![feature(unsafe_destructor, slicing_syntax)]
+#![feature(unsafe_destructor)]
+#![feature(unsafe_no_drop_flag)]
 #![cfg_attr(test, feature(rand, rustc_private, test))]
 #![cfg_attr(test, allow(deprecated))] // rand