Skip to content

Commit a5a160d

Browse files
ehusstraviscross
authored andcommitted
Add names.preludes.extern.no_std.syntax
1 parent 7e7ae6c commit a5a160d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/names/preludes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ r[names.preludes.extern.no_std]
8282
r[names.preludes.extern.no_std.intro]
8383
By default, the standard library is automatically included in the crate root module. The [`std`] crate is added to the root, along with an implicit [`macro_use` attribute] pulling in all macros exported from `std` into the [`macro_use` prelude]. Both [`core`] and [`std`] are added to the [extern prelude].
8484
85+
r[names.preludes.extern.no_std.syntax]
86+
The `no_std` attribute uses the [MetaWord] syntax and thus does not take any inputs.
87+
8588
r[names.preludes.extern.no_std.allowed-positions]
8689
The *`no_std` [attribute]* may be applied at the crate level to prevent the [`std`] crate from being automatically added into scope.
8790

0 commit comments

Comments
 (0)