Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions library/core/src/arch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/intrinsics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ pub unsafe fn prefetch_write_instruction<T>(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();
Expand Down
1 change: 0 additions & 1 deletion tests/assembly/breakpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//@[aarch64] only-aarch64
//@[x86_64] only-x86_64

#![feature(breakpoint)]
#![crate_type = "lib"]

// CHECK-LABEL: use_bp
Expand Down
Loading