Skip to content

Commit e1b3d09

Browse files
committed
Update miri_unleashed test output.
1 parent 932f723 commit e1b3d09

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/test/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const U8_MUT3: &u8 = { //~ NOTE
3232
unsafe { match static_cross_crate::OPT_ZERO { Some(ref u) => u, None => panic!() } }
3333
//~^ WARN [const_err]
3434
//~| NOTE constant accesses static
35+
//~| NOTE in this expansion of panic!
3536
};
3637

3738
pub fn test(x: &[u8; 1]) -> bool {

src/test/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.stderr

+9-8
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | | };
1111
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
1212

1313
error: could not evaluate constant pattern
14-
--> $DIR/const_refers_to_static_cross_crate.rs:39:9
14+
--> $DIR/const_refers_to_static_cross_crate.rs:40:9
1515
|
1616
LL | SLICE_MUT => true,
1717
| ^^^^^^^^^
@@ -29,7 +29,7 @@ LL | | };
2929
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
3030

3131
error: could not evaluate constant pattern
32-
--> $DIR/const_refers_to_static_cross_crate.rs:48:9
32+
--> $DIR/const_refers_to_static_cross_crate.rs:49:9
3333
|
3434
LL | U8_MUT => true,
3535
| ^^^^^^
@@ -52,7 +52,7 @@ LL | #[warn(const_err)]
5252
| ^^^^^^^^^
5353

5454
error: could not evaluate constant pattern
55-
--> $DIR/const_refers_to_static_cross_crate.rs:59:9
55+
--> $DIR/const_refers_to_static_cross_crate.rs:60:9
5656
|
5757
LL | U8_MUT2 => true,
5858
| ^^^^^^^
@@ -65,6 +65,7 @@ LL | | unsafe { match static_cross_crate::OPT_ZERO { Some(ref u) => u, None
6565
| | ^^^^^^^^^^^ constant accesses static
6666
LL | |
6767
LL | |
68+
LL | |
6869
LL | | };
6970
| |__-
7071
|
@@ -75,31 +76,31 @@ LL | #[warn(const_err)]
7576
| ^^^^^^^^^
7677

7778
error: could not evaluate constant pattern
78-
--> $DIR/const_refers_to_static_cross_crate.rs:67:9
79+
--> $DIR/const_refers_to_static_cross_crate.rs:68:9
7980
|
8081
LL | U8_MUT3 => true,
8182
| ^^^^^^^
8283

8384
error: could not evaluate constant pattern
84-
--> $DIR/const_refers_to_static_cross_crate.rs:39:9
85+
--> $DIR/const_refers_to_static_cross_crate.rs:40:9
8586
|
8687
LL | SLICE_MUT => true,
8788
| ^^^^^^^^^
8889

8990
error: could not evaluate constant pattern
90-
--> $DIR/const_refers_to_static_cross_crate.rs:48:9
91+
--> $DIR/const_refers_to_static_cross_crate.rs:49:9
9192
|
9293
LL | U8_MUT => true,
9394
| ^^^^^^
9495

9596
error: could not evaluate constant pattern
96-
--> $DIR/const_refers_to_static_cross_crate.rs:59:9
97+
--> $DIR/const_refers_to_static_cross_crate.rs:60:9
9798
|
9899
LL | U8_MUT2 => true,
99100
| ^^^^^^^
100101

101102
error: could not evaluate constant pattern
102-
--> $DIR/const_refers_to_static_cross_crate.rs:67:9
103+
--> $DIR/const_refers_to_static_cross_crate.rs:68:9
103104
|
104105
LL | U8_MUT3 => true,
105106
| ^^^^^^^

0 commit comments

Comments
 (0)