Closed
Description
When using rust-analyzer with the standard library, it shows an error for this code in sore/src/ptr/const_ptr.rs
:
pub const fn guaranteed_eq(self, other: *const T) -> bool
where
T: Sized,
{
intrinsics::ptr_guaranteed_eq(self, other)
}
It says this needs an unsafe block, but it evidently does not as the code compiles fine. Indeed, ptr_guaranteed_eq
is a safe intrinsic.