Skip to content

Commit

Permalink
Auto merge of #3113 - rust-lang:rustup-2023-10-07, r=saethlin
Browse files Browse the repository at this point in the history
Automatic sync from rustc
  • Loading branch information
bors committed Oct 7, 2023
2 parents d1e0f13 + 7bc6cc2 commit b02a8a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1bc0463b183392ad4e0ae9c5f7a76630d487230d
4ea5190026dbc1302b644d938e68bc6843cb8b24
3 changes: 1 addition & 2 deletions src/concurrency/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
if tcx.is_foreign_item(def_id) {
throw_unsup_format!("foreign thread-local statics are not supported");
}
// We don't give a span -- statics don't need that, they cannot be generic or associated.
let allocation = this.ctfe_query(None, |tcx| tcx.eval_static_initializer(def_id))?;
let allocation = this.ctfe_query(|tcx| tcx.eval_static_initializer(def_id))?;
let mut allocation = allocation.inner().clone();
// This allocation will be deallocated when the thread dies, so it is not in read-only memory.
allocation.mutability = Mutability::Mut;
Expand Down

0 comments on commit b02a8a9

Please sign in to comment.