Skip to content

Commit 9421048

Browse files
committed
update test output
1 parent 2b9b78a commit 9421048

File tree

5 files changed

+0
-73
lines changed

5 files changed

+0
-73
lines changed

src/test/ui/consts/enum-discr-type-err.stderr

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ LL | | }
1111
| |_- in this macro invocation
1212
|
1313
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
14-
help: you can convert an `i32` to `isize` and panic if the converted value wouldn't fit
15-
|
16-
LL | $( $v = $s::V.try_into().unwrap(), )*
17-
| ^^^^^^^^^^^^^^^^^^^^^^^^^
1814

1915
error[E0308]: mismatched types
2016
--> $DIR/enum-discr-type-err.rs:18:21
@@ -29,10 +25,6 @@ LL | | }
2925
| |_- in this macro invocation
3026
|
3127
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
32-
help: you can convert an `i32` to `isize` and panic if the converted value wouldn't fit
33-
|
34-
LL | $( $v = $s::V.try_into().unwrap(), )*
35-
| ^^^^^^^^^^^^^^^^^^^^^^^^^
3628

3729
error: aborting due to 2 previous errors
3830

src/test/ui/discrim/discrim-ill-typed.stderr

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,88 +3,48 @@ error[E0308]: mismatched types
33
|
44
LL | OhNo = 0_u8,
55
| ^^^^ expected `i8`, found `u8`
6-
|
7-
help: change the type of the numeric literal from `u8` to `i8`
8-
|
9-
LL | OhNo = 0_i8,
10-
| ^^^^
116

127
error[E0308]: mismatched types
138
--> $DIR/discrim-ill-typed.rs:30:16
149
|
1510
LL | OhNo = 0_i8,
1611
| ^^^^ expected `u8`, found `i8`
17-
|
18-
help: change the type of the numeric literal from `i8` to `u8`
19-
|
20-
LL | OhNo = 0_u8,
21-
| ^^^^
2212

2313
error[E0308]: mismatched types
2414
--> $DIR/discrim-ill-typed.rs:43:16
2515
|
2616
LL | OhNo = 0_u16,
2717
| ^^^^^ expected `i16`, found `u16`
28-
|
29-
help: change the type of the numeric literal from `u16` to `i16`
30-
|
31-
LL | OhNo = 0_i16,
32-
| ^^^^^
3318

3419
error[E0308]: mismatched types
3520
--> $DIR/discrim-ill-typed.rs:56:16
3621
|
3722
LL | OhNo = 0_i16,
3823
| ^^^^^ expected `u16`, found `i16`
39-
|
40-
help: change the type of the numeric literal from `i16` to `u16`
41-
|
42-
LL | OhNo = 0_u16,
43-
| ^^^^^
4424

4525
error[E0308]: mismatched types
4626
--> $DIR/discrim-ill-typed.rs:69:16
4727
|
4828
LL | OhNo = 0_u32,
4929
| ^^^^^ expected `i32`, found `u32`
50-
|
51-
help: change the type of the numeric literal from `u32` to `i32`
52-
|
53-
LL | OhNo = 0_i32,
54-
| ^^^^^
5530

5631
error[E0308]: mismatched types
5732
--> $DIR/discrim-ill-typed.rs:82:16
5833
|
5934
LL | OhNo = 0_i32,
6035
| ^^^^^ expected `u32`, found `i32`
61-
|
62-
help: change the type of the numeric literal from `i32` to `u32`
63-
|
64-
LL | OhNo = 0_u32,
65-
| ^^^^^
6636

6737
error[E0308]: mismatched types
6838
--> $DIR/discrim-ill-typed.rs:95:16
6939
|
7040
LL | OhNo = 0_u64,
7141
| ^^^^^ expected `i64`, found `u64`
72-
|
73-
help: change the type of the numeric literal from `u64` to `i64`
74-
|
75-
LL | OhNo = 0_i64,
76-
| ^^^^^
7742

7843
error[E0308]: mismatched types
7944
--> $DIR/discrim-ill-typed.rs:108:16
8045
|
8146
LL | OhNo = 0_i64,
8247
| ^^^^^ expected `u64`, found `i64`
83-
|
84-
help: change the type of the numeric literal from `i64` to `u64`
85-
|
86-
LL | OhNo = 0_u64,
87-
| ^^^^^
8848

8949
error: aborting due to 8 previous errors
9050

src/test/ui/issues/issue-31910.stderr

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ error[E0308]: mismatched types
33
|
44
LL | X = Trait::Number,
55
| ^^^^^^^^^^^^^ expected `isize`, found `i32`
6-
|
7-
help: you can convert an `i32` to `isize` and panic if the converted value wouldn't fit
8-
|
9-
LL | X = Trait::Number.try_into().unwrap(),
10-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116

127
error: aborting due to previous error
138

src/test/ui/issues/issue-8761.stderr

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,12 @@ error[E0308]: mismatched types
33
|
44
LL | A = 1i64,
55
| ^^^^ expected `isize`, found `i64`
6-
|
7-
help: change the type of the numeric literal from `i64` to `isize`
8-
|
9-
LL | A = 1isize,
10-
| ^^^^^^
116

127
error[E0308]: mismatched types
138
--> $DIR/issue-8761.rs:5:9
149
|
1510
LL | B = 2u8
1611
| ^^^ expected `isize`, found `u8`
17-
|
18-
help: change the type of the numeric literal from `u8` to `isize`
19-
|
20-
LL | B = 2isize
21-
| ^^^^^^
2212

2313
error: aborting due to 2 previous errors
2414

src/test/ui/repeat_count.stderr

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,12 @@ error[E0308]: mismatched types
3939
|
4040
LL | let f = [0; -4_isize];
4141
| ^^^^^^^^ expected `usize`, found `isize`
42-
|
43-
help: you can convert an `isize` to `usize` and panic if the converted value wouldn't fit
44-
|
45-
LL | let f = [0; (-4_isize).try_into().unwrap()];
46-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4742

4843
error[E0308]: mismatched types
4944
--> $DIR/repeat_count.rs:22:23
5045
|
5146
LL | let f = [0_usize; -1_isize];
5247
| ^^^^^^^^ expected `usize`, found `isize`
53-
|
54-
help: you can convert an `isize` to `usize` and panic if the converted value wouldn't fit
55-
|
56-
LL | let f = [0_usize; (-1_isize).try_into().unwrap()];
57-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5848

5949
error: aborting due to 8 previous errors
6050

0 commit comments

Comments
 (0)