From 34c4b17b4ca46c0d74f342bc85d0382b3a440b9d Mon Sep 17 00:00:00 2001 From: Pavel Grigorenko Date: Mon, 12 Aug 2024 22:41:55 +0300 Subject: [PATCH] alloc: `#[allow(instantly_dangling_pointer)]` for a test about dangling pointers --- library/alloc/tests/boxed.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/alloc/tests/boxed.rs b/library/alloc/tests/boxed.rs index faee64b2f6738..4d053ffdbfd72 100644 --- a/library/alloc/tests/boxed.rs +++ b/library/alloc/tests/boxed.rs @@ -4,6 +4,9 @@ use core::mem::MaybeUninit; use core::ptr::NonNull; #[test] +// FIXME(GrigorenkoPV) +#[allow(unknown_lints, reason="`instantly_dangling_pointer` does not exist at stage 0 yet")] +#[allow(instantly_dangling_pointer)] fn uninitialized_zero_size_box() { assert_eq!( &*Box::<()>::new_uninit() as *const _,