Skip to content

Commit

Permalink
miri: Adapt for breakpoint becoming safe
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtriplett committed Dec 3, 2024
1 parent a030ffb commit cea0582
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/tools/miri/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 src/tools/miri/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 cea0582

Please sign in to comment.