fix for const-prop lint changes

This commit is contained in:
Ralf Jung 2020-02-21 10:28:24 +01:00
parent fe8068d145
commit 627d7cba64
7 changed files with 7 additions and 8 deletions

View file

@ -1 +1 @@
de362d88ea17ab23ca2483cb798bc7aeb81a48f5
2851e59a52673e0242532035047009c6e121c95a

View file

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

View file

@ -1,5 +1,5 @@
// ignore-windows: Unwind panicking does not currently work on Windows
#![allow(const_err)]
#![allow(unconditional_panic)]
fn main() {
let _n = 1 / 0;

View file

@ -1,6 +1,5 @@
// ignore-windows: Unwind panicking does not currently work on Windows
#![allow(exceeding_bitshifts)]
#![allow(const_err)]
#![allow(arithmetic_overflow)]
fn main() {
let _n = 2i64 << -1;

View file

@ -1 +1 @@
thread 'main' panicked at 'attempt to shift left with overflow', $DIR/overflowing-lsh-neg.rs:6:14
thread 'main' panicked at 'attempt to shift left with overflow', $DIR/overflowing-lsh-neg.rs:5:14

View file

@ -1,5 +1,5 @@
// ignore-windows: Unwind panicking does not currently work on Windows
#![allow(exceeding_bitshifts, const_err)]
#![allow(arithmetic_overflow)]
fn main() {
let _n = 1i64 >> 64;

View file

@ -1,5 +1,5 @@
// ignore-windows: Unwind panicking does not currently work on Windows
#![allow(exceeding_bitshifts, const_err)]
#![allow(arithmetic_overflow)]
fn main() {
// Make sure we catch overflows that would be hidden by first casting the RHS to u32