Skip to content

Commit 2c55a50

Browse files
committed
rustup
1 parent 8355437 commit 2c55a50

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9e346646e93cc243567e27bb0f4e8716d56ad1f1
1+
56237d75b4271a8a2e0f47d86ea76ebf6d966152

src/stacked_borrows.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::fmt;
88
use std::num::NonZeroU64;
99

1010
use rustc::ty::{self, layout::Size};
11-
use rustc::hir::{MutMutable, MutImmutable};
11+
use rustc::hir::Mutability::{Mutable, Immutable};
1212
use rustc::mir::RetagKind;
1313

1414
use crate::{
@@ -618,13 +618,13 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
618618
fn qualify(ty: ty::Ty<'_>, kind: RetagKind) -> Option<(RefKind, bool)> {
619619
match ty.kind {
620620
// References are simple.
621-
ty::Ref(_, _, MutMutable) =>
621+
ty::Ref(_, _, Mutable) =>
622622
Some((RefKind::Unique { two_phase: kind == RetagKind::TwoPhase}, kind == RetagKind::FnEntry)),
623-
ty::Ref(_, _, MutImmutable) =>
623+
ty::Ref(_, _, Immutable) =>
624624
Some((RefKind::Shared, kind == RetagKind::FnEntry)),
625625
// Raw pointers need to be enabled.
626626
ty::RawPtr(tym) if kind == RetagKind::Raw =>
627-
Some((RefKind::Raw { mutable: tym.mutbl == MutMutable }, false)),
627+
Some((RefKind::Raw { mutable: tym.mutbl == Mutable }, false)),
628628
// Boxes do not get a protector: protectors reflect that references outlive the call
629629
// they were passed in to; that's just not the case for boxes.
630630
ty::Adt(..) if ty.is_box() => Some((RefKind::Unique { two_phase: false }, false)),

0 commit comments

Comments
 (0)