@@ -8,7 +8,7 @@ use std::fmt;
8
8
use std:: num:: NonZeroU64 ;
9
9
10
10
use rustc:: ty:: { self , layout:: Size } ;
11
- use rustc:: hir:: { MutMutable , MutImmutable } ;
11
+ use rustc:: hir:: Mutability :: { Mutable , Immutable } ;
12
12
use rustc:: mir:: RetagKind ;
13
13
14
14
use crate :: {
@@ -618,13 +618,13 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
618
618
fn qualify ( ty : ty:: Ty < ' _ > , kind : RetagKind ) -> Option < ( RefKind , bool ) > {
619
619
match ty. kind {
620
620
// References are simple.
621
- ty:: Ref ( _, _, MutMutable ) =>
621
+ ty:: Ref ( _, _, Mutable ) =>
622
622
Some ( ( RefKind :: Unique { two_phase : kind == RetagKind :: TwoPhase } , kind == RetagKind :: FnEntry ) ) ,
623
- ty:: Ref ( _, _, MutImmutable ) =>
623
+ ty:: Ref ( _, _, Immutable ) =>
624
624
Some ( ( RefKind :: Shared , kind == RetagKind :: FnEntry ) ) ,
625
625
// Raw pointers need to be enabled.
626
626
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 ) ) ,
628
628
// Boxes do not get a protector: protectors reflect that references outlive the call
629
629
// they were passed in to; that's just not the case for boxes.
630
630
ty:: Adt ( ..) if ty. is_box ( ) => Some ( ( RefKind :: Unique { two_phase : false } , false ) ) ,
0 commit comments