]> git.lizzy.rs Git - rust.git/commitdiff
fix incremental tests
authorRalf Jung <post@ralfj.de>
Sat, 15 Feb 2020 22:02:58 +0000 (23:02 +0100)
committerRalf Jung <post@ralfj.de>
Sat, 15 Feb 2020 22:02:58 +0000 (23:02 +0100)
src/test/incremental/warnings-reemitted.rs

index 5fc89395827c830a9b2847ec8d3c494beca72767..657bc30c0887eaa315ec9c1873c1f34239669320 100644 (file)
@@ -2,8 +2,8 @@
 // compile-flags: -Coverflow-checks=on
 // build-pass (FIXME(62277): could be check-pass?)
 
-#![warn(const_err)]
+#![warn(overflow)]
 
 fn main() {
-    let _ = 255u8 + 1; //~ WARNING attempt to add with overflow
+    let _ = 255u8 + 1; //~ WARNING operation will overflow
 }