Skip to content

Commit 1e4a73c

Browse files
authored
final tweaks
1 parent 906ff55 commit 1e4a73c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl fmt::Display for MiriMemoryKind {
123123
use self::MiriMemoryKind::*;
124124
match self {
125125
Rust => write!(f, "Rust heap"),
126-
Miri => write!(f, "Miri heap"),
126+
Miri => write!(f, "Miri bare-metal heap"),
127127
C => write!(f, "C heap"),
128128
WinHeap => write!(f, "Windows heap"),
129129
Machine => write!(f, "machine-managed memory"),

tests/pass/miri-alloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extern "Rust" {
1414
fn start(_: isize, _: *const *const u8) -> isize {
1515
unsafe {
1616
let ptr = miri_alloc(123, 1);
17-
core::ptr::write_bytes(ptr, 0, 123);
17+
core::ptr::write_bytes(ptr, 0u8, 123);
1818
miri_dealloc(ptr, 123, 1);
1919
}
2020
0

0 commit comments

Comments
 (0)