diff options
| author | Ralf Jung <post@ralfj.de> | 2019-08-17 13:45:11 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-08-17 13:50:04 +0200 |
| commit | 689c210b472d4469bec3fb62da7704989d8305fd (patch) | |
| tree | 65f6a7aab99e5bb815d3cd8dae8fb953ec206923 | |
| parent | 4821663a2bd2ef6c8fbc9c3f24a00371e71d419a (diff) | |
| download | rust-689c210b472d4469bec3fb62da7704989d8305fd.tar.gz rust-689c210b472d4469bec3fb62da7704989d8305fd.zip | |
fix tests
| -rw-r--r-- | src/test/ui/consts/const-eval/ub-nonnull.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/consts/const-eval/ub-ref.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/consts/const-eval/ub-upvars.rs | 2 |
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; |
