@@ -4,7 +4,7 @@ use rustc::ty;
4
4
5
5
use rustc:: mir:: interpret:: { EvalResult , Scalar , ScalarMaybeUndef } ;
6
6
use rustc_mir:: interpret:: {
7
- PlaceExtra , PlaceTy , EvalContext , OpTy , Value
7
+ PlaceTy , EvalContext , OpTy , Value
8
8
} ;
9
9
10
10
use super :: { ScalarExt , FalibleScalarExt , OperatorEvalContextExt } ;
@@ -293,7 +293,7 @@ impl<'a, 'mir, 'tcx> EvalContextExt<'tcx> for EvalContext<'a, 'mir, 'tcx, super:
293
293
_ => {
294
294
// Do it in memory
295
295
let mplace = self . force_allocation ( dest) ?;
296
- assert_eq ! ( mplace. extra, PlaceExtra :: None ) ;
296
+ assert ! ( mplace. extra. is_none ( ) ) ;
297
297
self . memory . write_repeat ( mplace. ptr , 0 , dest. layout . size ) ?;
298
298
}
299
299
}
@@ -550,7 +550,7 @@ impl<'a, 'mir, 'tcx> EvalContextExt<'tcx> for EvalContext<'a, 'mir, 'tcx, super:
550
550
_ => {
551
551
// Do it in memory
552
552
let mplace = self . force_allocation ( dest) ?;
553
- assert_eq ! ( mplace. extra, PlaceExtra :: None ) ;
553
+ assert ! ( mplace. extra. is_none ( ) ) ;
554
554
self . memory . mark_definedness ( mplace. ptr . to_ptr ( ) ?, dest. layout . size , false ) ?;
555
555
}
556
556
}
0 commit comments