Skip to content

Commit

Permalink
move use statement to verify module
Browse files Browse the repository at this point in the history
  • Loading branch information
QinyuanWu committed Sep 20, 2024
1 parent a0b1007 commit d623d96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/ptr/non_null.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use crate::num::NonZero;
use crate::ops::{CoerceUnsized, DispatchFromDyn};
use crate::pin::PinCoerceUnsized;
use crate::ptr::Unique;
use crate::ptr::null_mut;
use crate::slice::{self, SliceIndex};
use crate::ub_checks::assert_unsafe_precondition;
use crate::{fmt, hash, intrinsics, ptr};
Expand Down Expand Up @@ -1785,6 +1784,7 @@ impl<T: ?Sized> From<&T> for NonNull<T> {
#[unstable(feature="kani", issue="none")]
mod verify {
use super::*;
use crate::ptr::null_mut;

// pub const unsafe fn new_unchecked(ptr: *mut T) -> Self
#[kani::proof_for_contract(NonNull::new_unchecked)]
Expand Down

0 comments on commit d623d96

Please sign in to comment.