We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aafaec3 + 2dc9bf0 commit f8bdd9cCopy full SHA for f8bdd9c
library/core/src/ptr/mod.rs
@@ -603,6 +603,7 @@ pub const fn invalid_mut<T>(addr: usize) -> *mut T {
603
#[must_use]
604
#[inline]
605
#[unstable(feature = "strict_provenance", issue = "95228")]
606
+#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
607
pub fn from_exposed_addr<T>(addr: usize) -> *const T
608
where
609
T: Sized,
@@ -639,6 +640,7 @@ where
639
640
641
642
643
644
pub fn from_exposed_addr_mut<T>(addr: usize) -> *mut T
645
646
0 commit comments