Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update documentation to specify no_prelude
  • Loading branch information
Nemo157 committed Mar 16, 2016
commit 4be61ad941ab529361fedd77155aa7c3924b91e0
3 changes: 1 addition & 2 deletions src/doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1885,8 +1885,7 @@ type int8_t = i8;

### Module-only attributes

- `no_implicit_prelude` - disable injecting `use std::prelude::*` in this
module.
- `no_prelude` - disable injecting `use std::prelude::*` in this module.
- `path` - specifies the file to load the module from. `#[path="foo.rs"] mod
bar;` is equivalent to `mod bar { /* contents of foo.rs */ }`. The path is
taken relative to the directory that the current module is in.
Expand Down