You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/attributes/codegen.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,27 @@ The [testing attributes](testing.md) cannot be applied to a naked function.
85
85
r[attributes.codegen.no_builtins]
86
86
## The `no_builtins` attribute
87
87
88
-
The *`no_builtins`[attribute]* may be applied at the crate level to disable optimizing certain code patterns to invocations of library functions that are assumed to exist.
88
+
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.
90
+
91
+
<!-- TODO: This needs expanding, see https://github.com/rust-lang/reference/issues/542 -->
92
+
93
+
> [!EXAMPLE]
94
+
> ```rust
95
+
> #![no_builtins]
96
+
> ```
97
+
98
+
r[attributes.codegen.no_builtins.syntax]
99
+
The `no_builtins` attributeusesthe [MetaWord] syntaxandthusdoesnottakeanyinputs.
0 commit comments