about summary refs log tree commit diff
path: root/src/librustrt
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2014-09-26 17:48:16 +1200
committerNick Cameron <ncameron@mozilla.com>2014-10-02 13:23:36 +1300
commit95cfc35607ccf5f02f02de56a35a9ef50fa23a82 (patch)
tree85cb0f79ec42469ac7203cdcc09ffee5247cded7 /src/librustrt
parentdf2f1fa7680a86ba228f004e7de731e91a1df1fe (diff)
downloadrust-95cfc35607ccf5f02f02de56a35a9ef50fa23a82.tar.gz
rust-95cfc35607ccf5f02f02de56a35a9ef50fa23a82.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.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustrt/lib.rs b/src/librustrt/lib.rs
index 72c7d89a3b9..1183b14fb4e 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, managed_boxes, asm)]
 #![feature(linkage, lang_items, unsafe_destructor, default_type_params)]
-#![feature(import_shadowing)]
+#![feature(import_shadowing, slicing_syntax)]
 #![no_std]
 #![experimental]