From 9fdb347ad733dcd40eaab34ebb3143a1c6060206 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Thu, 26 Sep 2019 11:40:13 +0200 Subject: [PATCH] Rustup to `sty` -> `kind` changes --- rust-version | 2 +- src/helpers.rs | 2 +- src/stacked_borrows.rs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rust-version b/rust-version index e4cfa76225a..e8bca6ea63b 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -a5bc0f0e3f0c58518c0537d82dee0fcfeb57115c +dc45735f29788924b9fc351d100e5bf3ebdca162 diff --git a/src/helpers.rs b/src/helpers.rs index ad30040c2dd..3bee028c5eb 100644 --- a/src/helpers.rs +++ b/src/helpers.rs @@ -211,7 +211,7 @@ fn ecx(&self) -> &MiriEvalContext<'mir, 'tcx> { fn visit_value(&mut self, v: MPlaceTy<'tcx, Tag>) -> InterpResult<'tcx> { trace!("UnsafeCellVisitor: {:?} {:?}", *v, v.layout.ty); - let is_unsafe_cell = match v.layout.ty.sty { + let is_unsafe_cell = match v.layout.ty.kind { ty::Adt(adt, _) => Some(adt.did) == self.ecx.tcx.lang_items().unsafe_cell_type(), _ => false, }; diff --git a/src/stacked_borrows.rs b/src/stacked_borrows.rs index 01ed6ec225d..5258cbb5485 100644 --- a/src/stacked_borrows.rs +++ b/src/stacked_borrows.rs @@ -435,7 +435,7 @@ fn new( Stacks { stacks: RefCell::new(RangeMap::new(size, stack)), - global: extra, + global: extra, } } @@ -460,7 +460,7 @@ impl Stacks { pub fn new_allocation( id: AllocId, size: Size, - extra: MemoryExtra, + extra: MemoryExtra, kind: MemoryKind, ) -> (Self, Tag) { let (tag, perm) = match kind { @@ -616,7 +616,7 @@ fn retag( // Cannot use `builtin_deref` because that reports *immutable* for `Box`, // making it useless. fn qualify(ty: ty::Ty<'_>, kind: RetagKind) -> Option<(RefKind, bool)> { - match ty.sty { + match ty.kind { // References are simple. ty::Ref(_, _, MutMutable) => Some((RefKind::Unique { two_phase: kind == RetagKind::TwoPhase}, kind == RetagKind::FnEntry)), -- 2.44.0