Skip to content

Commit c4c6340

Browse files
authored
Rollup merge of #72007 - petrochenkov:passcheck3, r=RalfJung
Fix some tests failing in `--pass check` mode r? @RalfJung
2 parents 5cef212 + 13c9312 commit c4c6340

4 files changed

+5
-5
lines changed

src/test/ui/lint/lint-exceeding-bitshifts.noopt.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | const N: i32 = T::N << 42;
55
| ^^^^^^^^^^ attempt to shift left with overflow
66
|
77
note: the lint level is defined here
8-
--> $DIR/lint-exceeding-bitshifts.rs:8:9
8+
--> $DIR/lint-exceeding-bitshifts.rs:9:9
99
|
1010
LL | #![warn(arithmetic_overflow, const_err)]
1111
| ^^^^^^^^^^^^^^^^^^^

src/test/ui/lint/lint-exceeding-bitshifts.opt.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | const N: i32 = T::N << 42;
55
| ^^^^^^^^^^ attempt to shift left with overflow
66
|
77
note: the lint level is defined here
8-
--> $DIR/lint-exceeding-bitshifts.rs:8:9
8+
--> $DIR/lint-exceeding-bitshifts.rs:9:9
99
|
1010
LL | #![warn(arithmetic_overflow, const_err)]
1111
| ^^^^^^^^^^^^^^^^^^^

src/test/ui/lint/lint-exceeding-bitshifts.opt_with_overflow_checks.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | const N: i32 = T::N << 42;
55
| ^^^^^^^^^^ attempt to shift left with overflow
66
|
77
note: the lint level is defined here
8-
--> $DIR/lint-exceeding-bitshifts.rs:8:9
8+
--> $DIR/lint-exceeding-bitshifts.rs:9:9
99
|
1010
LL | #![warn(arithmetic_overflow, const_err)]
1111
| ^^^^^^^^^^^^^^^^^^^

src/test/ui/lint/lint-exceeding-bitshifts.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
//[opt]compile-flags: -O
44
//[opt_with_overflow_checks]compile-flags: -C overflow-checks=on -O
55
// build-pass
6+
// ignore-pass (test emits codegen-time warnings and verifies that they are not errors)
67

78
#![crate_type="lib"]
89
#![warn(arithmetic_overflow, const_err)]
9-
#![allow(unused_variables)]
10-
#![allow(dead_code)]
10+
1111

1212
pub trait Foo {
1313
const N: i32;

0 commit comments

Comments
 (0)