Skip to content

Commit 9e94ab6

Browse files
committed
Auto merge of #1187 - RalfJung:rustup, r=RalfJung
fix for const-prop lint changes Cc rust-lang/rust#69331
2 parents fe8068d + 627d7cb commit 9e94ab6

7 files changed

+7
-8
lines changed

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
de362d88ea17ab23ca2483cb798bc7aeb81a48f5
1+
2851e59a52673e0242532035047009c6e121c95a

tests/run-pass/panic/catch_panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ignore-windows: Unwind panicking does not currently work on Windows
22
// normalize-stderr-test "[^ ]*libcore/macros/mod.rs[0-9:]*" -> "$$LOC"
33
#![feature(never_type)]
4-
#![allow(const_err)]
4+
#![allow(unconditional_panic)]
55
use std::panic::{catch_unwind, AssertUnwindSafe};
66
use std::cell::Cell;
77

tests/run-pass/panic/div-by-zero-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ignore-windows: Unwind panicking does not currently work on Windows
2-
#![allow(const_err)]
2+
#![allow(unconditional_panic)]
33

44
fn main() {
55
let _n = 1 / 0;

tests/run-pass/panic/overflowing-lsh-neg.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// ignore-windows: Unwind panicking does not currently work on Windows
2-
#![allow(exceeding_bitshifts)]
3-
#![allow(const_err)]
2+
#![allow(arithmetic_overflow)]
43

54
fn main() {
65
let _n = 2i64 << -1;
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
thread 'main' panicked at 'attempt to shift left with overflow', $DIR/overflowing-lsh-neg.rs:6:14
1+
thread 'main' panicked at 'attempt to shift left with overflow', $DIR/overflowing-lsh-neg.rs:5:14

tests/run-pass/panic/overflowing-rsh-1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ignore-windows: Unwind panicking does not currently work on Windows
2-
#![allow(exceeding_bitshifts, const_err)]
2+
#![allow(arithmetic_overflow)]
33

44
fn main() {
55
let _n = 1i64 >> 64;

tests/run-pass/panic/overflowing-rsh-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ignore-windows: Unwind panicking does not currently work on Windows
2-
#![allow(exceeding_bitshifts, const_err)]
2+
#![allow(arithmetic_overflow)]
33

44
fn main() {
55
// Make sure we catch overflows that would be hidden by first casting the RHS to u32

0 commit comments

Comments
 (0)