Skip to content

Commit c876de4

Browse files
committed
Final attempt at making miri work
1 parent 706d098 commit c876de4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

library/core/src/arch.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,13 @@ pub fn breakpoint() {
9595
/// ## Example
9696
/// ```
9797
/// #![feature(return_address)]
98-
/// # #[cfg(not(miri))] // FIXME: Figure out how to make miri work before stabilizing this macro
99-
/// # {
98+
///
99+
/// # fn run_test() {
100100
/// let addr = core::arch::return_address!();
101101
/// println!("Caller is {addr:p}");
102102
/// # }
103+
/// # #[cfg(not(miri))] // FIXME: Figure out how to make miri work before stabilizing this macro
104+
/// # run_test()
103105
/// ```
104106
#[unstable(feature = "return_address", issue = "154966")]
105107
#[allow_internal_unstable(core_intrinsics)]

0 commit comments

Comments
 (0)