Skip to content

Commit 4893036

Browse files
committed
Cleanup from rebase
1 parent cef0ed7 commit 4893036

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/fn_call.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a + 'mir>: crate::MiriEvalContextExt<'
139139
fn emulate_foreign_item(
140140
&mut self,
141141
instance: ty::Instance<'tcx>,
142-
args: &[OpTy<'tcx, Borrow>],
142+
args: &[OpTy<'tcx, Tag>],
143143
dest: Option<PlaceTy<'tcx, Tag>>,
144144
ret: Option<mir::BasicBlock>,
145145
) -> EvalResult<'tcx, Option<&'mir mir::Mir<'tcx>>> {
@@ -1167,8 +1167,8 @@ fn gen_random<'a, 'mir, 'tcx>(
11671167
/// can proceeed normally.
11681168
fn unwind_stack<'a, 'mir, 'tcx>(
11691169
this: &mut MiriEvalContext<'a, 'mir, 'tcx>,
1170-
payload_data_ptr: Scalar<Borrow>,
1171-
payload_vtable_ptr: Scalar<Borrow>
1170+
payload_data_ptr: Scalar<Tag>,
1171+
payload_vtable_ptr: Scalar<Tag>
11721172
) -> EvalResult<'tcx> {
11731173
while !this.stack().is_empty() {
11741174
// When '__rust_maybe_catch_panic' is called, it marks is frame

src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,10 @@ pub struct FrameData<'tcx> {
429429
/// If a panic occurs, we update this data with
430430
/// the information from the panic site
431431
pub struct UnwindData<'tcx> {
432-
pub data: Pointer<Borrow>,
433-
pub data_ptr: MPlaceTy<'tcx, stacked_borrows::Borrow>,
434-
pub vtable_ptr: MPlaceTy<'tcx, stacked_borrows::Borrow>,
435-
pub dest: PlaceTy<'tcx, Borrow>,
432+
pub data: Pointer<Tag>,
433+
pub data_ptr: MPlaceTy<'tcx, Tag>,
434+
pub vtable_ptr: MPlaceTy<'tcx, Tag>,
435+
pub dest: PlaceTy<'tcx, Tag>,
436436
pub ret: mir::BasicBlock
437437
}
438438

src/stacked_borrows.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ trait EvalContextPrivExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
561561
protect: bool,
562562
) -> EvalResult<'tcx> {
563563
let this = self.eval_context_mut();
564-
let protector = if protect { Some(this.frame().extra) } else { None };
564+
let protector = if protect { Some(this.frame().extra.call_id) } else { None };
565565
let ptr = place.ptr.to_ptr()?;
566566
trace!("reborrow: {:?} reference {} derived from {} (pointee {}): {:?}, size {}",
567567
kind, new_tag, ptr.tag, place.layout.ty, ptr, size.bytes());

0 commit comments

Comments
 (0)