@@ -14,9 +14,9 @@ use rustc_span::Span;
1414use rustc_target:: abi:: { self , Abi , Align , HasDataLayout , Size } ;
1515
1616use super :: {
17- alloc_range, from_known_layout, mir_assign_valid_types, AllocId , ConstValue , Frame , GlobalId ,
18- InterpCx , InterpResult , MPlaceTy , Machine , MemPlace , MemPlaceMeta , PlaceTy , Pointer ,
19- Projectable , Provenance , Scalar ,
17+ alloc_range, from_known_layout, mir_assign_valid_types, AllocId , Frame , GlobalId , InterpCx ,
18+ InterpResult , MPlaceTy , Machine , MemPlace , MemPlaceMeta , PlaceTy , Pointer , Projectable ,
19+ Provenance , Scalar ,
2020} ;
2121
2222/// An `Immediate` represents a single immediate self-contained Rust value.
@@ -743,7 +743,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
743743
744744 pub ( crate ) fn const_val_to_op (
745745 & self ,
746- val_val : ConstValue < ' tcx > ,
746+ val_val : mir :: ConstValue < ' tcx > ,
747747 ty : Ty < ' tcx > ,
748748 layout : Option < TyAndLayout < ' tcx > > ,
749749 ) -> InterpResult < ' tcx , OpTy < ' tcx , M :: Provenance > > {
@@ -756,15 +756,15 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
756756 } ;
757757 let layout = from_known_layout ( self . tcx , self . param_env , layout, || self . layout_of ( ty) ) ?;
758758 let op = match val_val {
759- ConstValue :: Indirect { alloc_id, offset } => {
759+ mir :: ConstValue :: Indirect { alloc_id, offset } => {
760760 // We rely on mutability being set correctly in that allocation to prevent writes
761761 // where none should happen.
762762 let ptr = self . global_base_pointer ( Pointer :: new ( alloc_id, offset) ) ?;
763763 Operand :: Indirect ( MemPlace :: from_ptr ( ptr. into ( ) ) )
764764 }
765- ConstValue :: Scalar ( x) => Operand :: Immediate ( adjust_scalar ( x) ?. into ( ) ) ,
766- ConstValue :: ZeroSized => Operand :: Immediate ( Immediate :: Uninit ) ,
767- ConstValue :: Slice { data, start, end } => {
765+ mir :: ConstValue :: Scalar ( x) => Operand :: Immediate ( adjust_scalar ( x) ?. into ( ) ) ,
766+ mir :: ConstValue :: ZeroSized => Operand :: Immediate ( Immediate :: Uninit ) ,
767+ mir :: ConstValue :: Slice { data, start, end } => {
768768 // We rely on mutability being set correctly in `data` to prevent writes
769769 // where none should happen.
770770 let ptr = Pointer :: new (
0 commit comments