From dd98f7089fec5ee8bc908089bcb89c6e352d8726 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 2 Oct 2013 18:10:16 -0700 Subject: Implement feature-gating for the compiler A few features are now hidden behind various #[feature(...)] directives. These include struct-like enum variants, glob imports, and macro_rules! invocations. Closes #9304 Closes #9305 Closes #9306 Closes #9331 --- src/libstd/std.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libstd') diff --git a/src/libstd/std.rs b/src/libstd/std.rs index 5501cdfdcd5..53837f96593 100644 --- a/src/libstd/std.rs +++ b/src/libstd/std.rs @@ -61,6 +61,8 @@ they contained the following prologue: html_favicon_url = "http://www.rust-lang.org/favicon.ico", html_root_url = "http://static.rust-lang.org/doc/master")]; +#[feature(macro_rules, globs)]; + // Don't link to std. We are std. #[no_std]; -- cgit 1.4.1-3-g733a5