about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2015-01-07 15:15:34 +0100
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-01-08 00:41:43 +0100
commit4a31aaddb364f5ab8280242a1016bdd3d10dcaed (patch)
treee62158c713cb8491833f4cff687dca10faabc5aa /src/liballoc
parent82af2a1847fd51dd82f38666283ec9ff174d7a74 (diff)
downloadrust-4a31aaddb364f5ab8280242a1016bdd3d10dcaed.tar.gz
rust-4a31aaddb364f5ab8280242a1016bdd3d10dcaed.zip
Added `box_syntax` feature gate; added to std and rustc crates for bootstrap.
To avoid using the feauture, change uses of `box <expr>` to
`Box::new(<expr>)` alternative, as noted by the feature gate message.

(Note that box patterns have no analogous trivial replacement, at
least not in general; you need to revise the code to do a partial
match, deref, and then the rest of the match.)

[breaking-change]
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index ba6e89cdd76..402a542a92b 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -66,6 +66,7 @@
 #![no_std]
 #![allow(unknown_features)]
 #![feature(lang_items, unsafe_destructor)]
+#![feature(box_syntax)]
 
 #[macro_use]
 extern crate core;