@@ -19,22 +19,19 @@ use std::collections::hash_map::Entry;
1919use rustc:: hir:: { self , def_id:: DefId } ;
2020use rustc:: mir:: interpret:: ConstEvalErr ;
2121use rustc:: mir;
22- use rustc:: ty:: { self , TyCtxt , Instance , query:: TyCtxtAt } ;
23- use rustc:: ty:: layout:: { self , LayoutOf , TyLayout } ;
22+ use rustc:: ty:: { self , Ty , TyCtxt , Instance , query:: TyCtxtAt } ;
23+ use rustc:: ty:: layout:: { self , Size , LayoutOf , TyLayout } ;
2424use rustc:: ty:: subst:: Subst ;
2525use rustc_data_structures:: indexed_vec:: IndexVec ;
2626use rustc_data_structures:: fx:: FxHashMap ;
2727
2828use syntax:: ast:: Mutability ;
2929use syntax:: source_map:: { Span , DUMMY_SP } ;
3030
31- use rustc:: mir:: interpret:: {
32- EvalResult , EvalError , EvalErrorKind , GlobalId ,
33- Scalar , Allocation , AllocId , ConstValue ,
34- } ;
3531use interpret:: { self ,
36- PlaceTy , MPlaceTy , MemPlace , OpTy , Operand , Value ,
37- EvalContext , StackPopCleanup , MemoryKind ,
32+ PlaceTy , MemPlace , OpTy , Operand , Value , Pointer , Scalar , ConstValue ,
33+ EvalResult , EvalError , EvalErrorKind , GlobalId , EvalContext , StackPopCleanup ,
34+ Allocation , AllocId , MemoryKind ,
3835 snapshot,
3936} ;
4037
@@ -468,11 +465,22 @@ impl<'a, 'mir, 'tcx> interpret::Machine<'a, 'mir, 'tcx>
468465 #[ inline( always) ]
469466 fn tag_reference (
470467 _ecx : & mut EvalContext < ' a , ' mir , ' tcx , Self > ,
471- _place : MPlaceTy < ' tcx , Self :: PointerTag > ,
468+ _ptr : Pointer < Self :: PointerTag > ,
469+ _pointee_ty : Ty < ' tcx > ,
470+ _pointee_size : Size ,
472471 _borrow_kind : mir:: BorrowKind ,
473472 ) -> EvalResult < ' tcx , Self :: PointerTag > {
474473 Ok ( ( ) )
475474 }
475+
476+ #[ inline( always) ]
477+ fn tag_dereference (
478+ _ecx : & EvalContext < ' a , ' mir , ' tcx , Self > ,
479+ _ptr : Pointer < Self :: PointerTag > ,
480+ _ptr_ty : Ty < ' tcx > ,
481+ ) -> EvalResult < ' tcx , Self :: PointerTag > {
482+ Ok ( ( ) )
483+ }
476484}
477485
478486/// Project to a field of a (variant of a) const
0 commit comments