Skip to content

Commit

Permalink
alloc: #[allow(instantly_dangling_pointer)] for a test about dangli…
Browse files Browse the repository at this point in the history
…ng pointers
  • Loading branch information
GrigorenkoPV committed Aug 12, 2024
1 parent 3949157 commit f403c05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/alloc/tests/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 _,
Expand Down

0 comments on commit f403c05

Please sign in to comment.