Skip to content

Commit 6a04611

Browse files
authored
Merge pull request #707 from mattheww/2019-11_no_implicit_prelude
State that no_implicit_prelude also applies to nested modules
2 parents 96ae518 + 60551ff commit 6a04611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/modules.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ macros imported with [`#[macro_use]`][macro_use] on an extern crate, and by the
127127
[prelude]. These names are all made of a single identifier. These names are not
128128
part of the module, so for example, any name `name`, `self::name` is not a
129129
valid path. The names added by the [prelude] can be removed by placing the
130-
`no_implicit_prelude` [attribute] onto the module.
130+
`no_implicit_prelude` [attribute] onto the module or one of its ancestor modules.
131131

132132
## Attributes on Modules
133133

0 commit comments

Comments
 (0)