Skip to content

Commit bf8471a

Browse files
committed
Rebase fallout in ui output
1 parent f4a3e50 commit bf8471a

File tree

5 files changed

+13
-26
lines changed

5 files changed

+13
-26
lines changed

src/librustc_codegen_llvm/mir/operand.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ use rustc::mir::interpret::{ConstValue, ErrorHandled};
1212
use rustc::mir;
1313
use rustc::ty;
1414
use rustc::ty::layout::{self, Align, LayoutOf, TyLayout};
15-
use rustc_data_structures::sync::Lrc;
16-
use rustc_data_structures::indexed_vec::Idx;
1715

1816
use base;
1917
use common::{CodegenCx, C_undef, C_usize};

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: any use of this value will cause an error
2-
--> $DIR/const_panic_libcore_main.rs:20:1
2+
--> $DIR/const_panic_libcore_main.rs:19:1
33
|
44
LL | const Z: () = panic!("cheese");
55
| ^^^^^^^^^^^^^^----------------^
@@ -10,7 +10,7 @@ LL | const Z: () = panic!("cheese");
1010
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
1111

1212
error: any use of this value will cause an error
13-
--> $DIR/const_panic_libcore_main.rs:23:1
13+
--> $DIR/const_panic_libcore_main.rs:22:1
1414
|
1515
LL | const Y: () = unreachable!();
1616
| ^^^^^^^^^^^^^^--------------^
@@ -20,7 +20,7 @@ LL | const Y: () = unreachable!();
2020
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
2121

2222
error: any use of this value will cause an error
23-
--> $DIR/const_panic_libcore_main.rs:26:1
23+
--> $DIR/const_panic_libcore_main.rs:25:1
2424
|
2525
LL | const X: () = unimplemented!();
2626
| ^^^^^^^^^^^^^^----------------^

src/test/ui/consts/const-eval/issue-52475.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
fn main() {
1414
let _ = [(); {
1515
//~^ WARNING Constant evaluating a complex constant, this might take some time
16-
//~| ERROR could not evaluate repeat length
1716
let mut x = &0;
1817
let mut n = 0;
1918
while n < 5 { //~ ERROR constant contains unimplemented expression type
20-
n = (n + 1) % 5;
19+
n = (n + 1) % 5; //~ ERROR evaluation of constant value failed
2120
x = &0; // Materialize a new AllocId
2221
}
2322
0

src/test/ui/consts/const-eval/issue-52475.stderr

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error[E0019]: constant contains unimplemented expression type
2-
--> $DIR/issue-52475.rs:19:9
2+
--> $DIR/issue-52475.rs:18:9
33
|
44
LL | / while n < 5 { //~ ERROR constant contains unimplemented expression type
5-
LL | | n = (n + 1) % 5;
5+
LL | | n = (n + 1) % 5; //~ ERROR evaluation of constant value failed
66
LL | | x = &0; // Materialize a new AllocId
77
LL | | }
88
| |_________^
@@ -13,28 +13,18 @@ warning: Constant evaluating a complex constant, this might take some time
1313
LL | let _ = [(); {
1414
| __________________^
1515
LL | | //~^ WARNING Constant evaluating a complex constant, this might take some time
16-
LL | | //~| ERROR could not evaluate repeat length
1716
LL | | let mut x = &0;
17+
LL | | let mut n = 0;
1818
... |
1919
LL | | 0
2020
LL | | }];
2121
| |_____^
2222

23-
error[E0080]: could not evaluate repeat length
24-
--> $DIR/issue-52475.rs:14:18
23+
error[E0080]: evaluation of constant value failed
24+
--> $DIR/issue-52475.rs:19:17
2525
|
26-
LL | let _ = [(); {
27-
| __________________^
28-
LL | | //~^ WARNING Constant evaluating a complex constant, this might take some time
29-
LL | | //~| ERROR could not evaluate repeat length
30-
LL | | let mut x = &0;
31-
... |
32-
LL | | n = (n + 1) % 5;
33-
| | ----------- duplicate interpreter state observed here, const evaluation will never terminate
34-
... |
35-
LL | | 0
36-
LL | | }];
37-
| |_____^
26+
LL | n = (n + 1) % 5; //~ ERROR evaluation of constant value failed
27+
| ^^^^^^^^^^^ duplicate interpreter state observed here, const evaluation will never terminate
3828

3929
error: aborting due to 2 previous errors
4030

src/test/ui/consts/const-int-unchecked.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: this constant cannot be used
1+
error: any use of this value will cause an error
22
--> $DIR/const-int-unchecked.rs:15:1
33
|
44
LL | const SHR: u8 = unsafe { intrinsics::unchecked_shr(5_u8, 8) };
@@ -8,7 +8,7 @@ LL | const SHR: u8 = unsafe { intrinsics::unchecked_shr(5_u8, 8) };
88
|
99
= note: #[deny(const_err)] on by default
1010

11-
error: this constant cannot be used
11+
error: any use of this value will cause an error
1212
--> $DIR/const-int-unchecked.rs:17:1
1313
|
1414
LL | const SHL: u8 = unsafe { intrinsics::unchecked_shl(5_u8, 8) };

0 commit comments

Comments
 (0)