1 The `optimize` attribute was malformed.
3 Erroneous code example:
6 #![feature(optimize_attribute)]
8 #[optimize(something)] // error: invalid argument
12 The `#[optimize]` attribute should be used as follows:
14 - `#[optimize(size)]` -- instructs the optimization pipeline to generate code
15 that's smaller rather than faster
17 - `#[optimize(speed)]` -- instructs the optimization pipeline to generate code
18 that's faster rather than smaller
23 #![feature(optimize_attribute)]
29 See [RFC 2412] for more details.
31 [RFC 2412]: https://rust-lang.github.io/rfcs/2412-optimize-attr.html