Skip to content

Commit acd6d6d

Browse files
committed
Minor update of no_implicit_prelude
More closely align with the template, and some minor word tweaks.
1 parent f211984 commit acd6d6d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/names/preludes.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ r[names.preludes.tool.intro]
140140
The tool prelude includes tool names for external tools in the [type
141141
namespace]. See the [tool attributes] section for more details.
142142
143+
<!-- template:attributes -->
143144
r[names.preludes.no_implicit_prelude]
144145
## The `no_implicit_prelude` attribute
145146
@@ -159,19 +160,19 @@ The *`no_implicit_prelude` [attribute]* is used to prevent implicit preludes fro
159160
> ```
160161
161162
r[names.preludes.no_implicit_prelude.syntax]
162-
The `no_implicit_prelude` attribute uses the [MetaWord] syntax and thus does not take any inputs.
163+
The `no_implicit_prelude` attribute uses the [MetaWord] syntax.
163164
164165
r[names.preludes.no_implicit_prelude.allowed-positions]
165166
The `no_implicit_prelude` attribute may only be applied to the crate level or a module.
166167
167168
> [!NOTE]
168-
> `rustc` currently warns in other positions, but this may be rejected in the future.
169+
> `rustc` ignores use in other positions but lints against it. This may become an error in the future.
169170
170171
r[names.preludes.no_implicit_prelude.duplicates]
171-
Duplicate instances of the `no_implicit_prelude` attribute have no effect.
172+
The `no_implicit_prelude` attribute may be used any number of times on a form.
172173
173174
> [!NOTE]
174-
> `rustc` currently warns on subsequent duplicate `no_implicit_prelude` attributes.
175+
> `rustc` lints against any use following the first.
175176
176177
r[names.preludes.no_implicit_prelude.excluded-preludes]
177178
The `no_implicit_prelude` attribute prevents the [standard library prelude], [extern prelude], and the [tool prelude] from being brought into scope for the module or any of its descendants.

0 commit comments

Comments
 (0)