Skip to content

Commit bf0aab9

Browse files
author
The Miri Cronjob Bot
committed
fmt
1 parent 1c73fb9 commit bf0aab9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/tools/miri/src/concurrency/thread.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,11 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
902902
let mut alloc = alloc.inner().adjust_from_tcx(
903903
&this.tcx,
904904
|bytes, align| {
905-
interp_ok(MiriAllocBytes::from_bytes(std::borrow::Cow::Borrowed(bytes), align, ()))
905+
interp_ok(MiriAllocBytes::from_bytes(
906+
std::borrow::Cow::Borrowed(bytes),
907+
align,
908+
(),
909+
))
906910
},
907911
|ptr| this.global_root_pointer(ptr),
908912
)?;

src/tools/miri/src/machine.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1805,7 +1805,9 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
18051805
}
18061806

18071807
/// Placeholder!
1808-
fn get_default_alloc_params(&self) -> <Self::Bytes as AllocBytes>::AllocParams { () }
1808+
fn get_default_alloc_params(&self) -> <Self::Bytes as AllocBytes>::AllocParams {
1809+
()
1810+
}
18091811
}
18101812

18111813
/// Trait for callbacks handling asynchronous machine operations.

0 commit comments

Comments
 (0)