@@ -8,7 +8,7 @@ use std::fmt;
88use std:: num:: NonZeroU64 ;
99
1010use rustc:: ty:: { self , layout:: Size } ;
11- use rustc:: hir:: { MutMutable , MutImmutable } ;
11+ use rustc:: hir:: Mutability :: { Mutable , Immutable } ;
1212use rustc:: mir:: RetagKind ;
1313
1414use 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