about summary refs log tree commit diff
path: root/src/librustpkg/rustpkg.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-10-02 18:10:16 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-10-05 20:19:33 -0700
commitdd98f7089fec5ee8bc908089bcb89c6e352d8726 (patch)
tree2cf633494514e1976e7e1131b994e2b7e6038a11 /src/librustpkg/rustpkg.rs
parentacf9783879dca0db0721c10ac79c9078f2dec425 (diff)
downloadrust-dd98f7089fec5ee8bc908089bcb89c6e352d8726.tar.gz
rust-dd98f7089fec5ee8bc908089bcb89c6e352d8726.zip
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
Diffstat (limited to 'src/librustpkg/rustpkg.rs')
-rw-r--r--src/librustpkg/rustpkg.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustpkg/rustpkg.rs b/src/librustpkg/rustpkg.rs
index 1ece56df60a..cd4badfab31 100644
--- a/src/librustpkg/rustpkg.rs
+++ b/src/librustpkg/rustpkg.rs
@@ -18,6 +18,8 @@
 #[license = "MIT/ASL2"];
 #[crate_type = "lib"];
 
+#[feature(globs)];
+
 extern mod extra;
 extern mod rustc;
 extern mod syntax;