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/libsyntax/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libsyntax/lib.rs') diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index 9e14f9dd1ea..b6516254dbf 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -24,6 +24,7 @@ #![allow(unknown_features)] #![feature(slicing_syntax)] +#![feature(box_syntax)] #![feature(quote, unsafe_destructor)] extern crate arena; -- cgit 1.4.1-3-g733a5