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