Skip to content

Commit 34c4b17

Browse files
committed
alloc: #[allow(instantly_dangling_pointer)] for a test about dangling pointers
1 parent 3949157 commit 34c4b17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: library/alloc/tests/boxed.rs

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ use core::mem::MaybeUninit;
44
use core::ptr::NonNull;
55

66
#[test]
7+
// FIXME(GrigorenkoPV)
8+
#[allow(unknown_lints, reason="`instantly_dangling_pointer` does not exist at stage 0 yet")]
9+
#[allow(instantly_dangling_pointer)]
710
fn uninitialized_zero_size_box() {
811
assert_eq!(
912
&*Box::<()>::new_uninit() as *const _,

0 commit comments

Comments
 (0)