Skip to content

Commit

Permalink
no need to use miri's native stderr here
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Apr 17, 2024
1 parent d7f79cc commit 9f156d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/tools/miri/tests/pass/tree_borrows/reserved.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ fn main() {
}
}

unsafe fn print(msg: &str) {
utils::miri_write_to_stderr(msg.as_bytes());
utils::miri_write_to_stderr("\n".as_bytes());
fn print(msg: &str) {
eprintln!("{msg}");
}

unsafe fn read_second<T>(x: &mut T, y: *mut u8) {
Expand Down

0 comments on commit 9f156d3

Please sign in to comment.