fix for const-prop lint changes
This commit is contained in:
parent
fe8068d145
commit
627d7cba64
7 changed files with 7 additions and 8 deletions
|
|
@ -1 +1 @@
|
|||
de362d88ea17ab23ca2483cb798bc7aeb81a48f5
|
||||
2851e59a52673e0242532035047009c6e121c95a
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue