about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-08-17 13:45:11 +0200
committerRalf Jung <post@ralfj.de>2019-08-17 13:50:04 +0200
commit689c210b472d4469bec3fb62da7704989d8305fd (patch)
tree65f6a7aab99e5bb815d3cd8dae8fb953ec206923
parent4821663a2bd2ef6c8fbc9c3f24a00371e71d419a (diff)
downloadrust-689c210b472d4469bec3fb62da7704989d8305fd.tar.gz
rust-689c210b472d4469bec3fb62da7704989d8305fd.zip
fix tests
-rw-r--r--src/test/ui/consts/const-eval/ub-nonnull.rs2
-rw-r--r--src/test/ui/consts/const-eval/ub-ref.rs2
-rw-r--r--src/test/ui/consts/const-eval/ub-upvars.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/consts/const-eval/ub-nonnull.rs b/src/test/ui/consts/const-eval/ub-nonnull.rs
index 431ff356ade..9edae1965ce 100644
--- a/src/test/ui/consts/const-eval/ub-nonnull.rs
+++ b/src/test/ui/consts/const-eval/ub-nonnull.rs
@@ -1,5 +1,5 @@
 #![feature(rustc_attrs, const_transmute)]
-#![allow(const_err)] // make sure we cannot allow away the errors tested here
+#![allow(const_err, invalid_value)] // make sure we cannot allow away the errors tested here
 
 use std::mem;
 use std::ptr::NonNull;
diff --git a/src/test/ui/consts/const-eval/ub-ref.rs b/src/test/ui/consts/const-eval/ub-ref.rs
index 0d8f30159b3..bbab85c2121 100644
--- a/src/test/ui/consts/const-eval/ub-ref.rs
+++ b/src/test/ui/consts/const-eval/ub-ref.rs
@@ -1,6 +1,6 @@
 // ignore-tidy-linelength
 #![feature(const_transmute)]
-#![allow(const_err)] // make sure we cannot allow away the errors tested here
+#![allow(const_err, invalid_value)] // make sure we cannot allow away the errors tested here
 
 use std::mem;
 
diff --git a/src/test/ui/consts/const-eval/ub-upvars.rs b/src/test/ui/consts/const-eval/ub-upvars.rs
index 0a427cd8857..baab14dc161 100644
--- a/src/test/ui/consts/const-eval/ub-upvars.rs
+++ b/src/test/ui/consts/const-eval/ub-upvars.rs
@@ -1,5 +1,5 @@
 #![feature(const_transmute)]
-#![allow(const_err)] // make sure we cannot allow away the errors tested here
+#![allow(const_err, invalid_value)] // make sure we cannot allow away the errors tested here
 
 use std::mem;