|
1 | 1 | warning: skipping const checks
|
2 |
| - --> $DIR/const_refers_to_static.rs:15:5 |
| 2 | + --> $DIR/const_refers_to_static.rs:13:5 |
3 | 3 | |
|
4 | 4 | LL | FOO.fetch_add(1, Ordering::Relaxed)
|
5 | 5 | | ^^^
|
6 | 6 |
|
7 | 7 | warning: skipping const checks
|
8 |
| - --> $DIR/const_refers_to_static.rs:15:5 |
| 8 | + --> $DIR/const_refers_to_static.rs:13:5 |
9 | 9 | |
|
10 | 10 | LL | FOO.fetch_add(1, Ordering::Relaxed)
|
11 | 11 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
12 | 12 |
|
13 | 13 | warning: skipping const checks
|
14 |
| - --> $DIR/const_refers_to_static.rs:22:17 |
| 14 | + --> $DIR/const_refers_to_static.rs:20:17 |
15 | 15 | |
|
16 | 16 | LL | unsafe { *(&FOO as *const _ as *const usize) }
|
17 | 17 | | ^^^
|
18 | 18 |
|
19 | 19 | warning: skipping const checks
|
20 |
| - --> $DIR/const_refers_to_static.rs:27:32 |
| 20 | + --> $DIR/const_refers_to_static.rs:20:14 |
| 21 | + | |
| 22 | +LL | unsafe { *(&FOO as *const _ as *const usize) } |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 24 | + |
| 25 | +warning: skipping const checks |
| 26 | + --> $DIR/const_refers_to_static.rs:26:32 |
21 | 27 | |
|
22 | 28 | LL | const READ_MUT: u32 = unsafe { MUTABLE };
|
23 | 29 | | ^^^^^^^
|
24 | 30 |
|
25 | 31 | warning: skipping const checks
|
26 |
| - --> $DIR/const_refers_to_static.rs:27:32 |
| 32 | + --> $DIR/const_refers_to_static.rs:26:32 |
27 | 33 | |
|
28 | 34 | LL | const READ_MUT: u32 = unsafe { MUTABLE };
|
29 | 35 | | ^^^^^^^
|
30 | 36 |
|
31 | 37 | error[E0080]: erroneous constant used
|
32 |
| - --> $DIR/const_refers_to_static.rs:32:5 |
| 38 | + --> $DIR/const_refers_to_static.rs:31:5 |
33 | 39 | |
|
34 | 40 | LL | MUTATE_INTERIOR_MUT;
|
35 | 41 | | ^^^^^^^^^^^^^^^^^^^ referenced constant has errors
|
36 | 42 |
|
37 | 43 | error[E0080]: erroneous constant used
|
38 |
| - --> $DIR/const_refers_to_static.rs:34:5 |
| 44 | + --> $DIR/const_refers_to_static.rs:33:5 |
39 | 45 | |
|
40 | 46 | LL | READ_INTERIOR_MUT;
|
41 | 47 | | ^^^^^^^^^^^^^^^^^ referenced constant has errors
|
42 | 48 |
|
43 | 49 | error[E0080]: erroneous constant used
|
44 |
| - --> $DIR/const_refers_to_static.rs:36:5 |
| 50 | + --> $DIR/const_refers_to_static.rs:35:5 |
45 | 51 | |
|
46 | 52 | LL | READ_MUT;
|
47 | 53 | | ^^^^^^^^ referenced constant has errors
|
48 | 54 |
|
49 |
| -error: aborting due to 3 previous errors; 5 warnings emitted |
| 55 | +error: aborting due to 3 previous errors; 6 warnings emitted |
50 | 56 |
|
51 | 57 | For more information about this error, try `rustc --explain E0080`.
|
0 commit comments