Skip to content

Commit

Permalink
Remove usage and reference of feature(globs) from the book
Browse files Browse the repository at this point in the history
  • Loading branch information
camjackson committed Jan 12, 2015
1 parent b21a6da commit e1ff480
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions src/doc/trpl/testing.md
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -370,8 +368,6 @@ with examples:
//! assert_eq!(4, adder::add_two(2));
//! ```

#![feature(globs)]

/// This function adds two to its argument.
///
/// # Examples
Expand Down Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion src/doc/trpl/unsafe.md
Expand Up @@ -530,7 +530,6 @@ vectors provided from C, using idiomatic Rust practices.

```
#![no_std]
#![feature(globs)]
#![feature(lang_items)]
# extern crate libc;
Expand Down

0 comments on commit e1ff480

Please sign in to comment.