Skip to content

Commit 42bce6c

Browse files
committed
rustup
1 parent 2ee4aac commit 42bce6c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ pub fn create_ecx<'a, 'mir: 'a, 'tcx: 'mir>(
104104
start_mir.span,
105105
start_mir,
106106
Place::from_ptr(ret_ptr, align),
107-
StackPopCleanup::None,
107+
StackPopCleanup::None { cleanup: true },
108108
)?;
109109

110110
let mut args = ecx.frame().mir.args_iter();
@@ -124,9 +124,9 @@ pub fn create_ecx<'a, 'mir: 'a, 'tcx: 'mir>(
124124
let foo = ecx.memory.allocate_static_bytes(b"foo\0");
125125
let foo_ty = ecx.tcx.mk_imm_ptr(ecx.tcx.types.u8);
126126
let foo_layout = ecx.layout_of(foo_ty)?;
127-
let foo_place = ecx.allocate(foo_layout, MemoryKind::Stack)?; // will be marked as static in just a second
127+
let foo_place = ecx.allocate(foo_layout, MemoryKind::Stack)?; // will be interned in just a second
128128
ecx.write_scalar(Scalar::Ptr(foo), foo_place.into())?;
129-
ecx.memory.mark_static_initialized(foo_place.to_ptr()?.alloc_id, Mutability::Immutable)?; // marked as static
129+
ecx.memory.intern_static(foo_place.to_ptr()?.alloc_id, Mutability::Immutable)?;
130130
ecx.write_scalar(foo_place.ptr, dest)?;
131131

132132
assert!(args.next().is_none(), "start lang item has more arguments than expected");
@@ -136,7 +136,7 @@ pub fn create_ecx<'a, 'mir: 'a, 'tcx: 'mir>(
136136
main_mir.span,
137137
main_mir,
138138
Place::from_scalar_ptr(Scalar::from_int(1, ptr_size).into(), ty::layout::Align::from_bytes(1, 1).unwrap()),
139-
StackPopCleanup::None,
139+
StackPopCleanup::None { cleanup: true },
140140
)?;
141141

142142
// No arguments
@@ -338,7 +338,7 @@ impl<'mir, 'tcx: 'mir> Machine<'mir, 'tcx> for Evaluator<'tcx> {
338338
// Don't do anything when we are done. The statement() function will increment
339339
// the old stack frame's stmt counter to the next statement, which means that when
340340
// exchange_malloc returns, we go on evaluating exactly where we want to be.
341-
StackPopCleanup::None,
341+
StackPopCleanup::None { cleanup: true },
342342
)?;
343343

344344
let mut args = ecx.frame().mir.args_iter();

src/tls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl<'a, 'mir, 'tcx: 'mir + 'a> EvalContextExt<'tcx> for EvalContext<'a, 'mir, '
125125
mir.span,
126126
mir,
127127
ret,
128-
StackPopCleanup::None,
128+
StackPopCleanup::None { cleanup: true },
129129
)?;
130130
let arg_local = self.frame().mir.args_iter().next().ok_or_else(
131131
|| EvalErrorKind::AbiViolation("TLS dtor does not take enough arguments.".to_owned()),

0 commit comments

Comments
 (0)