Skip to content

Commit 4b4d43f

Browse files
committed
bless tests
1 parent d6c988b commit 4b4d43f

File tree

3 files changed

+13
-17
lines changed

3 files changed

+13
-17
lines changed

src/test/ui/consts/const-err-multi.stderr

+6-12
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,22 @@ LL | #![deny(const_err)]
1313
| ^^^^^^^^^
1414

1515
error: any use of this value will cause an error
16-
--> $DIR/const-err-multi.rs:5:19
16+
--> $DIR/const-err-multi.rs:5:1
1717
|
1818
LL | pub const B: i8 = A;
19-
| ------------------^-
20-
| |
21-
| referenced constant has errors
19+
| ^^^^^^^^^^^^^^^^^^^^ referenced constant has errors
2220

2321
error: any use of this value will cause an error
24-
--> $DIR/const-err-multi.rs:7:19
22+
--> $DIR/const-err-multi.rs:7:1
2523
|
2624
LL | pub const C: u8 = A as u8;
27-
| ------------------^^^^^^^-
28-
| |
29-
| referenced constant has errors
25+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors
3026

3127
error: any use of this value will cause an error
32-
--> $DIR/const-err-multi.rs:9:19
28+
--> $DIR/const-err-multi.rs:9:1
3329
|
3430
LL | pub const D: i8 = 50 - A;
35-
| ------------------^^^^^^-
36-
| |
37-
| referenced constant has errors
31+
| ^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors
3832

3933
error: aborting due to 4 previous errors
4034

src/test/ui/consts/const-eval/erroneous-const.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ impl<T> PrintName<T> {
77
//~^ WARN this operation will panic at runtime
88
}
99

10-
const fn no_codegen<T>() {
11-
if false { //~ERROR evaluation of constant value failed
10+
const fn no_codegen<T>() { //~ERROR evaluation of constant value failed
11+
if false {
1212
let _ = PrintName::<T>::VOID;
1313
}
1414
}

src/test/ui/consts/const-eval/erroneous-const.stderr

+5-3
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ LL | #![warn(const_err, unconditional_panic)]
2525
| ^^^^^^^^^
2626

2727
error[E0080]: evaluation of constant value failed
28-
--> $DIR/erroneous-const.rs:11:5
28+
--> $DIR/erroneous-const.rs:10:1
2929
|
30-
LL | / if false {
30+
LL | / const fn no_codegen<T>() {
31+
LL | | if false {
3132
LL | | let _ = PrintName::<T>::VOID;
3233
LL | | }
33-
| |_____^ referenced constant has errors
34+
LL | | }
35+
| |_^ referenced constant has errors
3436

3537
error[E0080]: could not evaluate static initializer
3638
--> $DIR/erroneous-const.rs:16:22

0 commit comments

Comments
 (0)