Skip to content

Commit 16fa75c

Browse files
authored
Merge pull request rust-lang#88 from oli-obk/patch-1
don't freeze globals twice
2 parents 85801fa + ca7ae5a commit 16fa75c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/interpreter/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,6 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
383383
}
384384
},
385385
}
386-
if let Value::ByRef(ptr) = global_value.data.expect("global should have been initialized") {
387-
self.memory.freeze(ptr.alloc_id)?;
388-
}
389386
assert!(global_value.mutable);
390387
global_value.mutable = false;
391388
} else {

0 commit comments

Comments
 (0)