Skip to content

Commit 689c210

Browse files
committed
fix tests
1 parent 4821663 commit 689c210

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/test/ui/consts/const-eval/ub-nonnull.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![feature(rustc_attrs, const_transmute)]
2-
#![allow(const_err)] // make sure we cannot allow away the errors tested here
2+
#![allow(const_err, invalid_value)] // make sure we cannot allow away the errors tested here
33

44
use std::mem;
55
use std::ptr::NonNull;

src/test/ui/consts/const-eval/ub-ref.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ignore-tidy-linelength
22
#![feature(const_transmute)]
3-
#![allow(const_err)] // make sure we cannot allow away the errors tested here
3+
#![allow(const_err, invalid_value)] // make sure we cannot allow away the errors tested here
44

55
use std::mem;
66

src/test/ui/consts/const-eval/ub-upvars.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![feature(const_transmute)]
2-
#![allow(const_err)] // make sure we cannot allow away the errors tested here
2+
#![allow(const_err, invalid_value)] // make sure we cannot allow away the errors tested here
33

44
use std::mem;
55

0 commit comments

Comments
 (0)