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