Skip to content

Commit 38ad909

Browse files
The Miri Cronjob Botlcnr
The Miri Cronjob Bot
authored andcommitted
fmt
1 parent a961810 commit 38ad909

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
863863
}
864864
let alloc = this.ctfe_query(|tcx| tcx.eval_static_initializer(def_id))?;
865865
// We make a full copy of this allocation.
866-
let mut alloc = alloc.inner().adjust_from_tcx(&this.tcx, |ptr| this.global_root_pointer(ptr))?;
866+
let mut alloc =
867+
alloc.inner().adjust_from_tcx(&this.tcx, |ptr| this.global_root_pointer(ptr))?;
867868
// This allocation will be deallocated when the thread dies, so it is not in read-only memory.
868869
alloc.mutability = Mutability::Mut;
869870
// Create a fresh allocation with this content.

0 commit comments

Comments
 (0)