1
Fork 0

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]
This commit is contained in:
Felix S. Klock II 2015-01-07 15:15:34 +01:00
parent 82af2a1847
commit 4a31aaddb3
14 changed files with 25 additions and 0 deletions

View file

@ -24,6 +24,7 @@
#![allow(unknown_features)]
#![feature(slicing_syntax)]
#![feature(box_syntax)]
#![deny(missing_docs)]
#[cfg(test)]