@@ -5,7 +5,7 @@ use rustc::mir::interpret::{
55} ;
66use rustc:: ty:: Const ;
77use rustc_mir:: interpret:: {
8- InterpretCx , ImmTy , MPlaceTy , Machine , Memory , MemoryKind , OpTy , PlaceTy , Pointer ,
8+ InterpretCx , ImmTy , Machine , Memory , MemoryKind , OpTy , PlaceTy ,
99 StackPopCleanup ,
1010} ;
1111
@@ -375,7 +375,6 @@ impl<'a, 'mir, 'tcx> Machine<'a, 'mir, 'tcx> for TransPlaceInterpreter {
375375 fn find_foreign_static (
376376 _: DefId ,
377377 _: :: rustc:: ty:: query:: TyCtxtAt < ' a , ' tcx , ' tcx > ,
378- _: & ( ) ,
379378 ) -> EvalResult < ' tcx , Cow < ' tcx , Allocation > > {
380379 panic ! ( ) ;
381380 }
@@ -393,27 +392,17 @@ impl<'a, 'mir, 'tcx> Machine<'a, 'mir, 'tcx> for TransPlaceInterpreter {
393392 panic ! ( ) ;
394393 }
395394
396- fn tag_dereference (
397- _: & InterpretCx < ' a , ' mir , ' tcx , Self > ,
398- _: MPlaceTy < ' tcx > ,
399- _: Option < :: rustc:: hir:: Mutability > ,
400- ) -> EvalResult < ' tcx , Scalar > {
401- panic ! ( ) ;
402- }
403-
404- fn adjust_static_allocation < ' alloc > (
405- alloc : & ' alloc Allocation ,
395+ fn tag_allocation < ' b > (
396+ _: AllocId ,
397+ alloc : Cow < ' b , Allocation > ,
398+ _: Option < MemoryKind < !> > ,
406399 _: & ( ) ,
407- ) -> Cow < ' alloc , Allocation > {
408- Cow :: Borrowed ( alloc)
400+ ) -> ( Cow < ' b , Allocation < ( ) , ( ) > > , ( ) ) {
401+ ( alloc, ( ) )
409402 }
410403
411- fn new_allocation (
412- _: Size ,
413- _: & ( ) ,
414- _: MemoryKind < !> ,
415- ) -> ( ( ) , ( ) ) {
416- ( ( ) , ( ) )
404+ fn tag_static_base_pointer ( _: AllocId , _: & ( ) ) -> Self :: PointerTag {
405+ ( )
417406 }
418407
419408 fn stack_push ( _: & mut InterpretCx < ' a , ' mir , ' tcx , Self > ) -> EvalResult < ' tcx > {
0 commit comments