diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2024-12-09 19:00:43 +0000 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2025-01-23 17:19:53 +0000 |
| commit | cd848c9f3eebcb4a0940e1370d3e6ba9b0fe4bca (patch) | |
| tree | 624c404e33ed83c8d84234c7c5337a8f6ffa68d3 /tests/ui/feature-gates/feature-gate-optimize_attribute.stderr | |
| parent | dee7d0e730a3a3ed98c89dd33c4ac16edc82de8a (diff) | |
| download | rust-cd848c9f3eebcb4a0940e1370d3e6ba9b0fe4bca.tar.gz rust-cd848c9f3eebcb4a0940e1370d3e6ba9b0fe4bca.zip | |
Implement `optimize(none)` attribute
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-optimize_attribute.stderr')
| -rw-r--r-- | tests/ui/feature-gates/feature-gate-optimize_attribute.stderr | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/ui/feature-gates/feature-gate-optimize_attribute.stderr b/tests/ui/feature-gates/feature-gate-optimize_attribute.stderr index ca8f4a078f0..4e6e4ac2703 100644 --- a/tests/ui/feature-gates/feature-gate-optimize_attribute.stderr +++ b/tests/ui/feature-gates/feature-gate-optimize_attribute.stderr @@ -21,6 +21,16 @@ LL | #[optimize(speed)] error[E0658]: the `#[optimize]` attribute is an experimental feature --> $DIR/feature-gate-optimize_attribute.rs:9:1 | +LL | #[optimize(none)] + | ^^^^^^^^^^^^^^^^^ + | + = note: see issue #54882 <https://github.com/rust-lang/rust/issues/54882> for more information + = help: add `#![feature(optimize_attribute)]` to the crate attributes to enable + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date + +error[E0658]: the `#[optimize]` attribute is an experimental feature + --> $DIR/feature-gate-optimize_attribute.rs:12:1 + | LL | #[optimize(banana)] | ^^^^^^^^^^^^^^^^^^^ | @@ -29,12 +39,12 @@ LL | #[optimize(banana)] = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date error[E0722]: invalid argument - --> $DIR/feature-gate-optimize_attribute.rs:9:12 + --> $DIR/feature-gate-optimize_attribute.rs:12:12 | LL | #[optimize(banana)] | ^^^^^^ -error: aborting due to 4 previous errors +error: aborting due to 5 previous errors Some errors have detailed explanations: E0658, E0722. For more information about an error, try `rustc --explain E0658`. |
