diff --git a/library/core/src/arch.rs b/library/core/src/arch.rs index e5078a45c6d9c..f86341d7c78bc 100644 --- a/library/core/src/arch.rs +++ b/library/core/src/arch.rs @@ -70,8 +70,7 @@ pub macro global_asm("assembly template", $(operands,)* $(options($(option),*))? /// /// - On x86 targets, this produces an `int3` instruction. /// - On aarch64 targets, this produces a `brk #0xf000` instruction. -// When stabilizing this, update the comment on `core::intrinsics::breakpoint`. -#[unstable(feature = "breakpoint", issue = "133724")] +#[stable(feature = "breakpoint", since = "CURRENT_RUSTC_VERSION")] #[inline(always)] pub fn breakpoint() { core::intrinsics::breakpoint(); diff --git a/library/core/src/intrinsics/mod.rs b/library/core/src/intrinsics/mod.rs index 4434ceb49bca8..2eb48858dd550 100644 --- a/library/core/src/intrinsics/mod.rs +++ b/library/core/src/intrinsics/mod.rs @@ -312,7 +312,7 @@ pub unsafe fn prefetch_write_instruction(data: *const T, locality: i32); /// Executes a breakpoint trap, for inspection by a debugger. /// -/// This intrinsic does not have a stable counterpart. +/// The stabilized version of this intrinsic is [`core::arch::breakpoint`]. #[rustc_intrinsic] #[rustc_nounwind] pub fn breakpoint(); diff --git a/tests/assembly/breakpoint.rs b/tests/assembly/breakpoint.rs index e0cc2d1eebb74..95dbcecd8d9a8 100644 --- a/tests/assembly/breakpoint.rs +++ b/tests/assembly/breakpoint.rs @@ -3,7 +3,6 @@ //@[aarch64] only-aarch64 //@[x86_64] only-x86_64 -#![feature(breakpoint)] #![crate_type = "lib"] // CHECK-LABEL: use_bp