10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75b7e52 commit 2dc9bf0Copy full SHA for 2dc9bf0
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( 7ADF 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
+#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
644
pub fn from_exposed_addr_mut<T>(addr: usize) -> *mut T
645
646
0 commit comments