Skip to content

Commit e07bbbe

Browse files
committed
Merge pull request #21001 from camjackson/master
Remove usage and reference of feature(globs) from the book Reviewed-by: steveklabnik
2 parents b5150b4 + e1ff480 commit e07bbbe

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/doc/trpl/testing.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ a large module, and so this is a common use of the `glob` feature. Let's change
254254
our `src/lib.rs` to make use of it:
255255

256256
```{rust,ignore}
257-
#![feature(globs)]
258257
259258
pub fn add_two(a: i32) -> i32 {
260259
a + 2
@@ -271,8 +270,7 @@ mod tests {
271270
}
272271
```
273272

274-
Note the `feature` attribute, as well as the different `use` line. Now we run
275-
our tests:
273+
Note the different `use` line. Now we run our tests:
276274

277275
```bash
278276
$ cargo test
@@ -370,8 +368,6 @@ with examples:
370368
//! assert_eq!(4, adder::add_two(2));
371369
//! ```
372370
373-
#![feature(globs)]
374-
375371
/// This function adds two to its argument.
376372
///
377373
/// # Examples
@@ -440,8 +436,6 @@ Rust also supports benchmark tests, which can test the performance of your
440436
code. Let's make our `src/lib.rs` look like this (comments elided):
441437

442438
```{rust,ignore}
443-
#![feature(globs)]
444-
445439
extern crate test;
446440
447441
pub fn add_two(a: i32) -> i32 {

src/doc/trpl/unsafe.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,6 @@ vectors provided from C, using idiomatic Rust practices.
530530

531531
```
532532
#![no_std]
533-
#![feature(globs)]
534533
#![feature(lang_items)]
535534
536535
# extern crate libc;

0 commit comments

Comments
 (0)