|
1 | 1 | warning: attempt to subtract with overflow
|
2 |
| - --> $DIR/promoted_errors2.rs:7:20 |
| 2 | + --> $DIR/promoted_errors2.rs:8:20 |
3 | 3 | |
|
4 | 4 | LL | println!("{}", 0u32 - 1);
|
5 | 5 | | ^^^^^^^^
|
6 | 6 | |
|
7 | 7 | note: lint level defined here
|
8 |
| - --> $DIR/promoted_errors2.rs:4:9 |
| 8 | + --> $DIR/promoted_errors2.rs:5:9 |
9 | 9 | |
|
10 | 10 | LL | #![warn(const_err)]
|
11 | 11 | | ^^^^^^^^^
|
12 | 12 |
|
13 | 13 | warning: attempt to subtract with overflow
|
14 |
| - --> $DIR/promoted_errors2.rs:9:14 |
| 14 | + --> $DIR/promoted_errors2.rs:10:14 |
15 | 15 | |
|
16 | 16 | LL | let _x = 0u32 - 1;
|
17 | 17 | | ^^^^^^^^
|
18 | 18 |
|
19 | 19 | warning: attempt to divide by zero
|
20 |
| - --> $DIR/promoted_errors2.rs:11:20 |
| 20 | + --> $DIR/promoted_errors2.rs:12:20 |
21 | 21 | |
|
22 | 22 | LL | println!("{}", 1 / (1 - 1));
|
23 | 23 | | ^^^^^^^^^^^
|
24 | 24 |
|
25 | 25 | warning: reaching this expression at runtime will panic or abort
|
26 |
| - --> $DIR/promoted_errors2.rs:11:20 |
| 26 | + --> $DIR/promoted_errors2.rs:12:20 |
27 | 27 | |
|
28 | 28 | LL | println!("{}", 1 / (1 - 1));
|
29 | 29 | | ^^^^^^^^^^^ dividing by zero
|
30 | 30 |
|
31 | 31 | warning: erroneous constant used
|
32 |
| - --> $DIR/promoted_errors2.rs:11:20 |
| 32 | + --> $DIR/promoted_errors2.rs:12:20 |
33 | 33 | |
|
34 | 34 | LL | println!("{}", 1 / (1 - 1));
|
35 | 35 | | ^^^^^^^^^^^ referenced constant has errors
|
36 | 36 |
|
37 | 37 | warning: attempt to divide by zero
|
38 |
| - --> $DIR/promoted_errors2.rs:15:14 |
| 38 | + --> $DIR/promoted_errors2.rs:16:14 |
39 | 39 | |
|
40 | 40 | LL | let _x = 1 / (1 - 1);
|
41 | 41 | | ^^^^^^^^^^^
|
42 | 42 |
|
43 | 43 | warning: attempt to divide by zero
|
44 |
| - --> $DIR/promoted_errors2.rs:17:20 |
| 44 | + --> $DIR/promoted_errors2.rs:18:20 |
45 | 45 | |
|
46 | 46 | LL | println!("{}", 1 / (false as u32));
|
47 | 47 | | ^^^^^^^^^^^^^^^^^^
|
48 | 48 |
|
49 | 49 | warning: reaching this expression at runtime will panic or abort
|
50 |
| - --> $DIR/promoted_errors2.rs:17:20 |
| 50 | + --> $DIR/promoted_errors2.rs:18:20 |
51 | 51 | |
|
52 | 52 | LL | println!("{}", 1 / (false as u32));
|
53 | 53 | | ^^^^^^^^^^^^^^^^^^ dividing by zero
|
54 | 54 |
|
55 | 55 | warning: erroneous constant used
|
56 |
| - --> $DIR/promoted_errors2.rs:17:20 |
| 56 | + --> $DIR/promoted_errors2.rs:18:20 |
57 | 57 | |
|
58 | 58 | LL | println!("{}", 1 / (false as u32));
|
59 | 59 | | ^^^^^^^^^^^^^^^^^^ referenced constant has errors
|
60 | 60 |
|
61 | 61 | warning: attempt to divide by zero
|
62 |
| - --> $DIR/promoted_errors2.rs:21:14 |
| 62 | + --> $DIR/promoted_errors2.rs:22:14 |
63 | 63 | |
|
64 | 64 | LL | let _x = 1 / (false as u32);
|
65 | 65 | | ^^^^^^^^^^^^^^^^^^
|
|
0 commit comments