-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
E-easyE-has-instructionsIssue has some instructions and pointers to code to get startedIssue has some instructions and pointers to code to get startedS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
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.
Metadata
Metadata
Assignees
Labels
E-easyE-has-instructionsIssue has some instructions and pointers to code to get startedIssue has some instructions and pointers to code to get startedS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now