From 4a31aaddb364f5ab8280242a1016bdd3d10dcaed Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Wed, 7 Jan 2015 15:15:34 +0100 Subject: Added `box_syntax` feature gate; added to std and rustc crates for bootstrap. To avoid using the feauture, change uses of `box ` to `Box::new()` 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] --- src/libcollections/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libcollections') diff --git a/src/libcollections/lib.rs b/src/libcollections/lib.rs index 6eab36d8844..37bc37b84df 100644 --- a/src/libcollections/lib.rs +++ b/src/libcollections/lib.rs @@ -24,6 +24,7 @@ #![allow(unknown_features)] #![feature(unsafe_destructor, slicing_syntax)] #![feature(old_impl_check)] +#![feature(box_syntax)] #![feature(unboxed_closures)] #![no_std] -- cgit 1.4.1-3-g733a5