diff options
| author | Jana Dönszelmann <jana@donsz.nl> | 2025-03-08 18:58:05 +0100 |
|---|---|---|
| committer | Jana Dönszelmann <jana@donsz.nl> | 2025-06-17 23:22:51 +0200 |
| commit | 5ab5f8a24a99cdbb178c886487d4c1971b86a32b (patch) | |
| tree | fbb303eab922913bf4e4c50dea1a2c2ca1a2aad9 /tests/ui/force-inlining/invalid.stderr | |
| parent | 672452d573e3f499a8edc4308400a6d116974938 (diff) | |
| download | rust-5ab5f8a24a99cdbb178c886487d4c1971b86a32b.tar.gz rust-5ab5f8a24a99cdbb178c886487d4c1971b86a32b.zip | |
make error codes reflect reality better
Diffstat (limited to 'tests/ui/force-inlining/invalid.stderr')
| -rw-r--r-- | tests/ui/force-inlining/invalid.stderr | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/tests/ui/force-inlining/invalid.stderr b/tests/ui/force-inlining/invalid.stderr index a12f633b3f2..3b3da00ae88 100644 --- a/tests/ui/force-inlining/invalid.stderr +++ b/tests/ui/force-inlining/invalid.stderr @@ -4,17 +4,14 @@ error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed LL | fn barqux(#[rustc_force_inline] _x: u32) {} | ^^^^^^^^^^^^^^^^^^^^^ -error[E0539]: malformed `rustc_force_inline` attribute input +error[E0805]: malformed `rustc_force_inline` attribute input --> $DIR/invalid.rs:15:1 | LL | #[rustc_force_inline(bar, baz)] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | -note: expected a single argument here - --> $DIR/invalid.rs:15:21 + | ^^^^^^^^^^^^^^^^^^^^----------^ + | | + | expected a single argument here | -LL | #[rustc_force_inline(bar, baz)] - | ^^^^^^^^^^ help: try changing it to one of the following valid forms of the attribute | LL - #[rustc_force_inline(bar, baz)] @@ -31,13 +28,10 @@ error[E0539]: malformed `rustc_force_inline` attribute input --> $DIR/invalid.rs:20:1 | LL | #[rustc_force_inline(2)] - | ^^^^^^^^^^^^^^^^^^^^^^^^ - | -note: expected a string literal here - --> $DIR/invalid.rs:20:22 + | ^^^^^^^^^^^^^^^^^^^^^-^^ + | | + | expected a string literal here | -LL | #[rustc_force_inline(2)] - | ^ help: try changing it to one of the following valid forms of the attribute | LL - #[rustc_force_inline(2)] @@ -54,13 +48,10 @@ error[E0539]: malformed `rustc_force_inline` attribute input --> $DIR/invalid.rs:25:1 | LL | #[rustc_force_inline = 2] - | ^^^^^^^^^^^^^^^^^^^^^^^^^ - | -note: expected a string literal here - --> $DIR/invalid.rs:25:24 + | ^^^^^^^^^^^^^^^^^^^^^^^-^ + | | + | expected a string literal here | -LL | #[rustc_force_inline = 2] - | ^ help: try changing it to one of the following valid forms of the attribute | LL - #[rustc_force_inline = 2] @@ -392,4 +383,5 @@ LL | fn foo(); error: aborting due to 37 previous errors -For more information about this error, try `rustc --explain E0539`. +Some errors have detailed explanations: E0539, E0805. +For more information about an error, try `rustc --explain E0539`. |
