From e1ff480e433697ae546e2cedebf659dc1b19572f Mon Sep 17 00:00:00 2001 From: Cam Jackson Date: Mon, 12 Jan 2015 23:06:03 +1100 Subject: [PATCH] Remove usage and reference of feature(globs) from the book --- src/doc/trpl/testing.md | 8 +------- src/doc/trpl/unsafe.md | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/doc/trpl/testing.md b/src/doc/trpl/testing.md index 66da6395a5e09..dd5c7c305590c 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 38427875a6230..3221c72f50092 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;