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:
parent
82af2a1847
commit
4a31aaddb3
14 changed files with 25 additions and 0 deletions
|
@ -107,6 +107,7 @@
|
|||
#![feature(linkage, thread_local, asm)]
|
||||
#![feature(lang_items, unsafe_destructor)]
|
||||
#![feature(slicing_syntax, unboxed_closures)]
|
||||
#![feature(box_syntax)]
|
||||
#![feature(old_impl_check)]
|
||||
#![cfg_attr(stage0, allow(unused_attributes))]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue