@@ -21,9 +21,8 @@ use crate::errors::{LongRunning, LongRunningWarn};
21
21
use crate :: fluent_generated as fluent;
22
22
use crate :: interpret:: {
23
23
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,
27
26
} ;
28
27
29
28
/// 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> {
586
585
}
587
586
588
587
#[ 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 > {
590
592
// This is only reachable with -Zunleash-the-miri-inside-of-you.
591
593
throw_unsup_format ! ( "exposing pointers is not possible at compile-time" )
592
594
}
0 commit comments