Skip to content

Commit 7308419

Browse files
committed
Allow invalid_null_ptr_usages in some tests
1 parent 0779516 commit 7308419

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/ui/const-ptr/forbidden_slices.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
33
// normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*A(LLOC)?[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
44

5-
#![feature(
6-
slice_from_ptr_range,
7-
const_slice_from_ptr_range,
8-
)]
5+
#![feature(slice_from_ptr_range, const_slice_from_ptr_range)]
6+
#![allow(invalid_null_ptr_usages)]
7+
8+
99
use std::{
1010
mem::{size_of, MaybeUninit},
1111
ptr,

0 commit comments

Comments
 (0)