From 60551ff75287438b037f6b832732ea0fddac037c Mon Sep 17 00:00:00 2001 From: Matthew Woodcraft Date: Sat, 2 Nov 2019 13:53:14 +0000 Subject: [PATCH] State that no_implicit_prelude also applies to nested modules --- src/items/modules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/items/modules.md b/src/items/modules.md index c6f1f69c1..bdcda4905 100644 --- a/src/items/modules.md +++ b/src/items/modules.md @@ -127,7 +127,7 @@ macros imported with [`#[macro_use]`][macro_use] on an extern crate, and by the [prelude]. These names are all made of a single identifier. These names are not part of the module, so for example, any name `name`, `self::name` is not a valid path. The names added by the [prelude] can be removed by placing the -`no_implicit_prelude` [attribute] onto the module. +`no_implicit_prelude` [attribute] onto the module or one of its ancestor modules. ## Attributes on Modules