diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2014-09-26 17:48:16 +1200 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2014-10-07 15:49:53 +1300 |
| commit | 2d3823441fe5324f747f7bf51ffc07b9434f827f (patch) | |
| tree | cf8f7d36282f850bee8aaa73521499fe6f436f85 /src/librustrt | |
| parent | 59976942eacd26c0cc37247c3ac0c78b97edc6ea (diff) | |
| download | rust-2d3823441fe5324f747f7bf51ffc07b9434f827f.tar.gz rust-2d3823441fe5324f747f7bf51ffc07b9434f827f.zip | |
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.
Diffstat (limited to 'src/librustrt')
| -rw-r--r-- | src/librustrt/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustrt/lib.rs b/src/librustrt/lib.rs index b6782b37584..d3ea07291a4 100644 --- a/src/librustrt/lib.rs +++ b/src/librustrt/lib.rs @@ -16,9 +16,10 @@ html_favicon_url = "http://www.rust-lang.org/favicon.ico", html_root_url = "http://doc.rust-lang.org/master/")] +#![allow(unknown_features)] #![feature(macro_rules, phase, globs, thread_local, asm)] #![feature(linkage, lang_items, unsafe_destructor, default_type_params)] -#![feature(import_shadowing)] +#![feature(import_shadowing, slicing_syntax)] #![no_std] #![experimental] |
