Skip to content

Commit 9f156d3

Browse files
committed
no need to use miri's native stderr here
1 parent d7f79cc commit 9f156d3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/tools/miri/tests/pass/tree_borrows/reserved.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ fn main() {
2727
}
2828
}
2929

30-
unsafe fn print(msg: &str) {
31-
utils::miri_write_to_stderr(msg.as_bytes());
32-
utils::miri_write_to_stderr("\n".as_bytes());
30+
fn print(msg: &str) {
31+
eprintln!("{msg}");
3332
}
3433

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

0 commit comments

Comments
 (0)