Skip to content

Commit 668b2c2

Browse files
committed
Stabilize the breakpoint function
Stabilization report and FCP in #133724.
1 parent 8ce2287 commit 668b2c2

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

library/core/src/arch.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ pub macro global_asm("assembly template", $(operands,)* $(options($(option),*))?
7070
///
7171
/// - On x86 targets, this produces an `int3` instruction.
7272
/// - On aarch64 targets, this produces a `brk #0xf000` instruction.
73-
// When stabilizing this, update the comment on `core::intrinsics::breakpoint`.
74-
#[unstable(feature = "breakpoint", issue = "133724")]
73+
#[stable(feature = "breakpoint", since = "CURRENT_RUSTC_VERSION")]
7574
#[inline(always)]
7675
pub fn breakpoint() {
7776
core::intrinsics::breakpoint();

library/core/src/intrinsics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ pub unsafe fn prefetch_write_instruction<T>(data: *const T, locality: i32);
312312

313313
/// Executes a breakpoint trap, for inspection by a debugger.
314314
///
315-
/// This intrinsic does not have a stable counterpart.
315+
/// The stabilized version of this intrinsic is [`core::arch::breakpoint`].
316316
#[rustc_intrinsic]
317317
#[rustc_nounwind]
318318
pub fn breakpoint();

tests/assembly/breakpoint.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
//@[aarch64] only-aarch64
44
//@[x86_64] only-x86_64
55

6-
#![feature(breakpoint)]
76
#![crate_type = "lib"]
87

98
// CHECK-LABEL: use_bp

0 commit comments

Comments
 (0)