about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-15 14:11:31 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-01-15 14:11:31 -0800
commitdbbe506c10bb07ea2ca6ee6b05ca85ca2177f283 (patch)
tree5e992a22b457b9001d2de1651fa723c26e4d0a21
parentc478c6ac91d6af6bc259b87f7ca3a9f3f580f57c (diff)
parente1ff480e433697ae546e2cedebf659dc1b19572f (diff)
downloadrust-dbbe506c10bb07ea2ca6ee6b05ca85ca2177f283.tar.gz
rust-dbbe506c10bb07ea2ca6ee6b05ca85ca2177f283.zip
rollup merge of #21001: camjackson/master
With the code samples as they are, the compiler says:
`feature has been added to Rust, directive not necessary`
-rw-r--r--src/doc/trpl/testing.md8
-rw-r--r--src/doc/trpl/unsafe.md1
2 files changed, 1 insertions, 8 deletions
diff --git a/src/doc/trpl/testing.md b/src/doc/trpl/testing.md
index a304c60ba1a..aefc7d7aa3d 100644
--- a/src/doc/trpl/testing.md
+++ b/src/doc/trpl/testing.md
@@ -254,7 +254,6 @@ a large module, and so this is a common use of the `glob` feature. Let's change
 our `src/lib.rs` to make use of it:
 
 ```{rust,ignore}
-#![feature(globs)]
 
 pub fn add_two(a: i32) -> i32 {
     a + 2
@@ -271,8 +270,7 @@ mod tests {
 }
 ```
 
-Note the `feature` attribute, as well as the different `use` line. Now we run
-our tests:
+Note the different `use` line. Now we run our tests:
 
 ```bash
 $ cargo test
@@ -370,8 +368,6 @@ with examples:
 //! assert_eq!(4, adder::add_two(2));
 //! ```
 
-#![feature(globs)]
-
 /// This function adds two to its argument.
 ///
 /// # Examples
@@ -440,8 +436,6 @@ Rust also supports benchmark tests, which can test the performance of your
 code. Let's make our `src/lib.rs` look like this (comments elided):
 
 ```{rust,ignore}
-#![feature(globs)]
-
 extern crate test;
 
 pub fn add_two(a: i32) -> i32 {
diff --git a/src/doc/trpl/unsafe.md b/src/doc/trpl/unsafe.md
index 15f258cf8d4..554ad0daae6 100644
--- a/src/doc/trpl/unsafe.md
+++ b/src/doc/trpl/unsafe.md
@@ -530,7 +530,6 @@ vectors provided from C, using idiomatic Rust practices.
 
 ```
 #![no_std]
-#![feature(globs)]
 #![feature(lang_items)]
 
 # extern crate libc;