Skip to content

Commit edba949

Browse files
committed
update misuse of check-label
1 parent 5747ece commit edba949

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

tests/mir-opt/dataflow-const-prop/array_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fn main() {
1515
// CHECK-NOT: assert(move _
1616
// CHECK: {{_.*}} = const 4_usize;
1717
// CHECK: {{_.*}} = const true;
18-
// CHECK-LABEL: assert(const true
18+
// CHECK: assert(const true
1919
// CHECK: [[x]] = [[array_lit]][2 of 3];
2020
let x: u32 = [0, 1, 2, 3][2];
2121
}

tests/mir-opt/dataflow-const-prop/checked.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ fn main() {
1919
// CHECK: [[b]] = const 2_i32;
2020
let b = 2;
2121

22-
// CHECK-LABEL: assert(!const false,
22+
// CHECK: assert(!const false,
2323
// CHECK: [[c]] = const 3_i32;
2424
let c = a + b;
2525

2626
// CHECK: [[d]] = const _;
2727
let d = i32::MAX;
2828

29-
// CHECK-LABEL: assert(!const true,
29+
// CHECK: assert(!const true,
3030
// CHECK: [[e]] = const i32::MIN;
3131
let e = d + 1;
3232
}

tests/mir-opt/dataflow-const-prop/default_boxed_slice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn main() {
2323
// CHECK: debug a => [[a:_.*]];
2424
// We may check other inlined functions as well...
2525

26-
// CHECK-LABEL: _.* = Box::<[bool]>(
27-
// FIXME: should be `_.* = const Box::<[bool]>`
26+
// CHECK: {{_.*}} = Box::<[bool]>(
27+
// FIXME: should be `{{_.*}} = const Box::<[bool]>`
2828
let a: A = A { foo: Box::default() };
2929
}

tests/mir-opt/dataflow-const-prop/inherit_overflow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ fn main() {
99
// Propagating the overflow is ok as codegen will just skip emitting the panic.
1010

1111
// CHECK: {{_.*}} = const (0_u8, true);
12-
// CHECK-LABEL: assert(!const true,
12+
// CHECK: assert(!const true,
1313
let _ = <u8 as std::ops::Add>::add(255, 1);
1414
}

tests/mir-opt/dataflow-const-prop/large_array_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn main() {
1212
// CHECK: [[array_lit:_.*]] = [const 0_u8; 5000];
1313
// CHECK: {{_.*}} = const 5000_usize;
1414
// CHECK: {{_.*}} = const true;
15-
// CHECK-LABEL: assert(const true
15+
// CHECK: assert(const true
1616
// CHECK: [[x]] = [[array_lit]][2 of 3];
1717
let x: u8 = [0_u8; 5000][2];
1818
}

tests/mir-opt/dataflow-const-prop/repeat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn main() {
1212
// CHECK-NOT: {{_.*}} = Lt(
1313
// CHECK: {{_.*}} = const 8_usize;
1414
// CHECK: {{_.*}} = const true;
15-
// CHECK-LABEL: assert(const true
15+
// CHECK: assert(const true
1616

1717
// CHECK-NOT: [[t:_.*]] = [[array_lit]][_
1818
// CHECK: [[t:_.*]] = [[array_lit]][2 of 3];

0 commit comments

Comments
 (0)