Skip to content

Commit

Permalink
Allow invalid_null_ptr_usages in some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Dec 22, 2023
1 parent f117247 commit b25c44c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/ui/const-ptr/forbidden_slices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
// normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*A(LLOC)?[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"

#![feature(
slice_from_ptr_range,
const_slice_from_ptr_range,
)]
#![feature(slice_from_ptr_range, const_slice_from_ptr_range)]
#![allow(invalid_null_ptr_usages)]


use std::{
mem::{size_of, MaybeUninit},
ptr,
Expand Down

0 comments on commit b25c44c

Please sign in to comment.