Skip to content

Commit 706d098

Browse files
committed
Fix cfg use for disabling test on miri
1 parent 4b5d544 commit 706d098

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

library/core/src/arch.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,12 @@ pub fn breakpoint() {
9494
///
9595
/// ## Example
9696
/// ```
97-
/// # #![cfg(not(miri))] // FIXME: Figure out how to make miri work before stabilizing this macro
9897
/// #![feature(return_address)]
99-
///
98+
/// # #[cfg(not(miri))] // FIXME: Figure out how to make miri work before stabilizing this macro
99+
/// # {
100100
/// let addr = core::arch::return_address!();
101101
/// println!("Caller is {addr:p}");
102+
/// # }
102103
/// ```
103104
#[unstable(feature = "return_address", issue = "154966")]
104105
#[allow_internal_unstable(core_intrinsics)]

0 commit comments

Comments
 (0)