Skip to content

Commit 701f6e5

Browse files
Fix broken incremental test
This test does not actually emit any warnings, since `#![allow(warnings)]` was specified. `compiletest` was erroneously ignoring `//~` tests and looking only for `//[X]~` ones. As a result of the changes in the previous commit, we now look for `//~` comments in incremental tests and expect them to appear in *all* revisions.
1 parent 54d51bc commit 701f6e5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/incremental/warnings-reemitted.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
// compile-flags: -Coverflow-checks=on
33
// build-pass (FIXME(62277): could be check-pass?)
44

5-
#![allow(warnings)]
65
#![warn(const_err)]
76

87
fn main() {
9-
255u8 + 1; //~ WARNING this expression will panic at run-time
8+
let _ = 255u8 + 1; //~ WARNING attempt to add with overflow
109
}

0 commit comments

Comments
 (0)