Skip to content

Commit 5b84620

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 + 3e2f29a commit 5b84620

9 files changed

+8
-12
lines changed

rust-version

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

test-cargo-miri/tests/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn do_panic() { // In large, friendly letters :)
5555

5656
// FIXME: see above
5757
#[test]
58-
#[allow(const_err)]
58+
#[allow(unconditional_panic)]
5959
#[cfg_attr(not(windows), should_panic(expected="the len is 0 but the index is 42"))]
6060
fn fail_index_check() {
6161
#[cfg(not(windows))]

tests/run-pass/coerce_non_capture_closure_to_fn_ptr.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
// allow(const_err) to work around a bug in warnings
2-
#[allow(const_err)]
31
static FOO: fn() = || { assert_ne!(42, 43) };
4-
#[allow(const_err)]
52
static BAR: fn(i32, i32) = |a, b| { assert_ne!(a, b) };
63

74
// use to first make the closure FnOnce() before making it fn()

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)