@@ -21,9 +21,8 @@ use crate::errors::{LongRunning, LongRunningWarn};
2121use crate :: fluent_generated as fluent;
2222use crate :: interpret:: {
2323 self , AllocId , AllocRange , ConstAllocation , CtfeProvenance , FnArg , Frame , GlobalAlloc , ImmTy ,
24- InterpCx , InterpResult , MPlaceTy , OpTy , Pointer , RangeSet , Scalar , compile_time_machine,
25- interp_ok, throw_exhaust, throw_inval, throw_ub, throw_ub_custom, throw_unsup,
26- throw_unsup_format,
24+ InterpCx , InterpResult , MPlaceTy , OpTy , RangeSet , Scalar , compile_time_machine, interp_ok,
25+ throw_exhaust, throw_inval, throw_ub, throw_ub_custom, throw_unsup, throw_unsup_format,
2726} ;
2827
2928/// When hitting this many interpreted terminators we emit a deny by default lint
@@ -586,7 +585,10 @@ impl<'tcx> interpret::Machine<'tcx> for CompileTimeMachine<'tcx> {
586585 }
587586
588587 #[ inline( always) ]
589- fn expose_ptr ( _ecx : & mut InterpCx < ' tcx , Self > , _ptr : Pointer ) -> InterpResult < ' tcx > {
588+ fn expose_provenance (
589+ _ecx : & InterpCx < ' tcx , Self > ,
590+ _provenance : Self :: Provenance ,
591+ ) -> InterpResult < ' tcx > {
590592 // This is only reachable with -Zunleash-the-miri-inside-of-you.
591593 throw_unsup_format ! ( "exposing pointers is not possible at compile-time" )
592594 }
0 commit comments