Skip to content

Commit

Permalink
Rollup merge of #133726 - joshtriplett:breakpoint, r=oli-obk
Browse files Browse the repository at this point in the history
Add `core::arch::breakpoint` and test

Approved in [ACP 491](rust-lang/libs-team#491).
  • Loading branch information
matthiaskrgr authored Dec 3, 2024
2 parents 543137e + 7c2738c commit 4acf2d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions tests/fail/breakpoint.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#![feature(core_intrinsics)]

fn main() {
unsafe {
core::intrinsics::breakpoint() //~ ERROR: trace/breakpoint trap
};
core::intrinsics::breakpoint(); //~ ERROR: trace/breakpoint trap
}
4 changes: 2 additions & 2 deletions tests/fail/breakpoint.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
error: abnormal termination: trace/breakpoint trap
--> tests/fail/breakpoint.rs:LL:CC
|
LL | core::intrinsics::breakpoint()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trace/breakpoint trap
LL | core::intrinsics::breakpoint();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trace/breakpoint trap
|
= note: BACKTRACE:
= note: inside `main` at tests/fail/breakpoint.rs:LL:CC
Expand Down

0 comments on commit 4acf2d5

Please sign in to comment.