Skip to content

Commit 24c5eaf

Browse files
committed
Auto merge of rust-lang#2305 - RalfJung:rustup, r=RalfJung
rustup
2 parents 602a3dc + c0cbb66 commit 24c5eaf

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ca1e68b3229e710c3948a361ee770d846a88e6da
1+
46b8c23f3eb5e4d0e0aa27eb3f20d5b8fc3ed51f

tests/fail/erroneous_const2.stderr

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ error: any use of this value will cause an error
22
--> $DIR/erroneous_const2.rs:LL:CC
33
|
44
LL | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize];
5-
| ------------------^^^^^---------------------------
6-
| |
7-
| attempt to compute `5_u32 - 6_u32`, which would overflow
5+
| -------------- ^^^^^ attempt to compute `5_u32 - 6_u32`, which would overflow
86
|
97
= note: `#[deny(const_err)]` on by default
108
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

0 commit comments

Comments
 (0)