@@ -16,59 +16,47 @@ error: attempt to divide by zero
1616LL | println!("{}", 1/(1-1));
1717 | ^^^^^^^
1818
19- error: this expression will panic at runtime
19+ error: reaching this expression at runtime will panic or abort
2020 --> $DIR/promoted_errors.rs:9:20
2121 |
2222LL | println!("{}", 1/(1-1));
2323 | ^^^^^^^ attempt to divide by zero
2424
2525error: attempt to divide by zero
26- --> $DIR/promoted_errors.rs:13 :14
26+ --> $DIR/promoted_errors.rs:12 :14
2727 |
2828LL | let _x = 1/(1-1);
2929 | ^^^^^^^
3030
3131error: this expression will panic at runtime
32- --> $DIR/promoted_errors.rs:13 :14
32+ --> $DIR/promoted_errors.rs:12 :14
3333 |
3434LL | let _x = 1/(1-1);
3535 | ^^^^^^^ attempt to divide by zero
3636
3737error: attempt to divide by zero
38- --> $DIR/promoted_errors.rs:16 :20
38+ --> $DIR/promoted_errors.rs:15 :20
3939 |
4040LL | println!("{}", 1/(false as u32));
4141 | ^^^^^^^^^^^^^^^^
4242
43- error: this expression will panic at runtime
44- --> $DIR/promoted_errors.rs:16 :20
43+ error: reaching this expression at runtime will panic or abort
44+ --> $DIR/promoted_errors.rs:15 :20
4545 |
4646LL | println!("{}", 1/(false as u32));
4747 | ^^^^^^^^^^^^^^^^ attempt to divide by zero
4848
4949error: attempt to divide by zero
50- --> $DIR/promoted_errors.rs:20 :14
50+ --> $DIR/promoted_errors.rs:18 :14
5151 |
5252LL | let _x = 1/(false as u32);
5353 | ^^^^^^^^^^^^^^^^
5454
5555error: this expression will panic at runtime
56- --> $DIR/promoted_errors.rs:20 :14
56+ --> $DIR/promoted_errors.rs:18 :14
5757 |
5858LL | let _x = 1/(false as u32);
5959 | ^^^^^^^^^^^^^^^^ attempt to divide by zero
6060
61- error: reaching this expression at runtime will panic or abort
62- --> $DIR/promoted_errors.rs:16:20
63- |
64- LL | println!("{}", 1/(false as u32));
65- | ^^^^^^^^^^^^^^^^ attempt to divide by zero
66-
67- error: reaching this expression at runtime will panic or abort
68- --> $DIR/promoted_errors.rs:9:20
69- |
70- LL | println!("{}", 1/(1-1));
71- | ^^^^^^^ attempt to divide by zero
72-
73- error: aborting due to 11 previous errors
61+ error: aborting due to 9 previous errors
7462
0 commit comments