Put slicing syntax behind a feature gate.

[breaking-change]

If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
This commit is contained in:
Nick Cameron
2014-09-26 17:48:16 +12:00
parent 59976942ea
commit 2d3823441f
41 changed files with 101 additions and 39 deletions

View File

@@ -7,7 +7,7 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(globs, unsafe_destructor, macro_rules)]
#![feature(globs, unsafe_destructor, macro_rules, slicing_syntax)]
extern crate core;
extern crate test;