File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,21 @@ The *`no_implicit_prelude` [attribute]* may be applied at the crate level or on
158
158
> }
159
159
> ```
160
160
161
+ 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
+
164
+ r[names. preludes. no_implicit_prelude. allowed- positions]
165
+ The `no_implicit_prelude` attribute may only be applied to the crate level or a module.
166
+
167
+ > [! NOTE]
168
+ > `rustc` currently warns in other positions, but this may be rejected in the future.
169
+
170
+ r[names. preludes. no_implicit_prelude. duplicates]
171
+ Duplicate instances of the `no_implicit_prelude` attribute have no effect.
172
+
173
+ > [! NOTE]
174
+ > `rustc` currently warns on subsequent duplicate `no_implicit_prelude` attributes.
175
+
161
176
r[names. preludes. no_implicit_prelude. lang]
162
177
This attribute does not affect the [language prelude].
163
178
You can’t perform that action at this time.
0 commit comments