Skip to content

Commit d42abcd

Browse files
committed
Revise no_builtins text
1 parent 2b06733 commit d42abcd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/attributes/codegen.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,26 +86,26 @@ r[attributes.codegen.no_builtins]
8686
## The `no_builtins` attribute
8787

8888
r[attributes.codegen.no_builtins.intro]
89-
The *`no_builtins` [attribute]* disables optimizing certain code patterns to invocations of library functions that are assumed to exist.
89+
The *`no_builtins` [attribute]* disables optimization of certain code patterns related to calls to library functions that are assumed to exist.
9090

91-
<!-- TODO: This needs expanding, see https://github.com/rust-lang/reference/issues/542 -->
91+
<!-- TODO: This needs expanding, see <https://github.com/rust-lang/reference/issues/542>. -->
9292

9393
> [!EXAMPLE]
9494
> ```rust
9595
> #![no_builtins]
9696
> ```
9797
9898
r[attributes.codegen.no_builtins.syntax]
99-
The `no_builtins` attribute uses the [MetaWord] syntax and thus does not take any inputs.
99+
The `no_builtins` attribute uses the [MetaWord] syntax.
100100
101101
r[attributes.codegen.no_builtins.allowed-positions]
102102
The `no_builtins` attribute can only be applied to the crate root.
103103
104104
r[attributes.codegen.no_builtins.duplicates]
105-
Duplicate instances of the `no_builtins` attribute have no effect.
105+
Only the first use of the `no_builtins` attribute has effect.
106106
107107
> [!NOTE]
108-
> `rustc` currently warns on subsequent duplicate `no_builtins` attributes.
108+
> `rustc` currently lints against uses following the first.
109109
110110
r[attributes.codegen.target_feature]
111111
## The `target_feature` attribute

0 commit comments

Comments
 (0)