about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2019-11-18 10:06:21 -0800
committerDylan MacKenzie <ecstaticmorse@gmail.com>2019-11-21 14:08:33 -0800
commit701f6e51b2aab7a761e5c9c81cff476e81eef7e0 (patch)
tree69137a7dda26b05d48adb8d571a6d35f145e01d1
parent54d51bc48396b89954a10c936f6797064ccdbc29 (diff)
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.
-rw-r--r--src/test/incremental/warnings-reemitted.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/incremental/warnings-reemitted.rs b/src/test/incremental/warnings-reemitted.rs
index a1d11f8aa5b..5fc89395827 100644
--- a/src/test/incremental/warnings-reemitted.rs
+++ b/src/test/incremental/warnings-reemitted.rs
@@ -2,9 +2,8 @@
 // compile-flags: -Coverflow-checks=on
 // build-pass (FIXME(62277): could be check-pass?)
 
-#![allow(warnings)]
 #![warn(const_err)]
 
 fn main() {
-    255u8 + 1; //~ WARNING this expression will panic at run-time
+    let _ = 255u8 + 1; //~ WARNING attempt to add with overflow
 }