about summary refs log tree commit diff
path: root/doc/tutorial.md
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 /doc/tutorial.md
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 'doc/tutorial.md')
-rw-r--r--doc/tutorial.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md
index 64230a27637..49ba38954b3 100644
--- a/doc/tutorial.md
+++ b/doc/tutorial.md
@@ -746,6 +746,10 @@ fn area(sh: Shape) -> f64 {
 }
 ~~~~
 
+> ***Note:*** This feature of the compiler is currently gated behind the
+> `#[feature(struct_variant)]` directive. More about these directives can be
+> found in the manual.
+
 ## Tuples
 
 Tuples in Rust behave exactly like structs, except that their fields
@@ -2665,6 +2669,10 @@ use farm::*;
 # fn main() { cow(); chicken() }
 ~~~
 
+> ***Note:*** This feature of the compiler is currently gated behind the
+> `#[feature(globs)]` directive. More about these directives can be found in
+> the manual.
+
 However, that's not all. You can also rename an item while you're bringing it into scope:
 
 ~~~