We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 320d049 commit e09d782Copy full SHA for e09d782
compiler/rustc_error_codes/src/error_codes/E0722.md
@@ -19,6 +19,16 @@ The `#[optimize]` attribute should be used as follows:
19
- `#[optimize(speed)]` -- instructs the optimization pipeline to generate code
20
that's faster rather than smaller
21
22
+For example:
23
+```
24
+#![feature(optimize_attribute)]
25
+
26
+#[optimize(size)]
27
+pub fn something() {}
28
29
+fn main() {}
30
31
32
See [RFC 2412] for more details.
33
34
[RFC 2412]: https://rust-lang.github.io/rfcs/2412-optimize-attr.html
0 commit comments