Skip to content

Commit 4bd30f0

Browse files
Rollup merge of #116277 - RalfJung:post-mono, r=oli-obk
dont call mir.post_mono_checks in codegen It seems like all tests are still passing when I remove this... let's see what CI says.
2 parents 8fa442d + 1192fd4 commit 4bd30f0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/concurrency/thread.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
803803
if tcx.is_foreign_item(def_id) {
804804
throw_unsup_format!("foreign thread-local statics are not supported");
805805
}
806-
// We don't give a span -- statics don't need that, they cannot be generic or associated.
807-
let allocation = this.ctfe_query(None, |tcx| tcx.eval_static_initializer(def_id))?;
806+
let allocation = this.ctfe_query(|tcx| tcx.eval_static_initializer(def_id))?;
808807
let mut allocation = allocation.inner().clone();
809808
// This allocation will be deallocated when the thread dies, so it is not in read-only memory.
810809
allocation.mutability = Mutability::Mut;

0 commit comments

Comments
 (0)