Skip to content

Commit cdac094

Browse files
Update uitest stderr
Signed-off-by: Jonathan Brouwer <[email protected]>
1 parent 17016af commit cdac094

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

tests/ui/parser/bad-lit-suffixes.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,10 @@ extern "C" {}
4242

4343
#[rustc_layout_scalar_valid_range_start(0suffix)]
4444
//~^ ERROR invalid suffix `suffix` for number literal
45-
//~| ERROR malformed `rustc_layout_scalar_valid_range_start` attribute input
4645
struct S;
4746

4847
impl S {
4948
#[rustc_confusables("blah"suffix)]
5049
//~^ ERROR suffixes on string literals are invalid
51-
//~| ERROR malformed `rustc_confusables` attribute input
5250
fn woof() { }
53-
}
51+
}

tests/ui/parser/bad-lit-suffixes.stderr

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -168,30 +168,12 @@ LL | #[rustc_layout_scalar_valid_range_start(0suffix)]
168168
|
169169
= help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.)
170170

171-
error[E0539]: malformed `rustc_layout_scalar_valid_range_start` attribute input
172-
--> $DIR/bad-lit-suffixes.rs:43:1
173-
|
174-
LL | #[rustc_layout_scalar_valid_range_start(0suffix)]
175-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------^^
176-
| | |
177-
| | expected an integer literal here
178-
| help: must be of the form: `#[rustc_layout_scalar_valid_range_start(start)]`
179-
180171
error: suffixes on string literals are invalid
181-
--> $DIR/bad-lit-suffixes.rs:49:25
172+
--> $DIR/bad-lit-suffixes.rs:48:25
182173
|
183174
LL | #[rustc_confusables("blah"suffix)]
184175
| ^^^^^^^^^^^^ invalid suffix `suffix`
185176

186-
error[E0539]: malformed `rustc_confusables` attribute input
187-
--> $DIR/bad-lit-suffixes.rs:49:5
188-
|
189-
LL | #[rustc_confusables("blah"suffix)]
190-
| ^^^^^^^^^^^^^^^^^^^^------------^^
191-
| | |
192-
| | expected a string literal here
193-
| help: must be of the form: `#[rustc_confusables("name1", "name2", ...)]`
194-
195-
error: aborting due to 24 previous errors; 2 warnings emitted
177+
error: aborting due to 22 previous errors; 2 warnings emitted
196178

197179
For more information about this error, try `rustc --explain E0539`.

0 commit comments

Comments
 (0)