@@ -90,12 +90,12 @@ impl Drop for SpanGuard {
9090}
9191
9292/// A stack frame.
93- pub struct Frame < ' mir , ' tcx , Prov : Provenance = CtfeProvenance , Extra = ( ) > {
93+ pub struct Frame < ' tcx , Prov : Provenance = CtfeProvenance , Extra = ( ) > {
9494 ////////////////////////////////////////////////////////////////////////////////
9595 // Function and callsite information
9696 ////////////////////////////////////////////////////////////////////////////////
9797 /// The MIR for the function called on this frame.
98- pub body : & ' mir mir:: Body < ' tcx > ,
98+ pub body : & ' tcx mir:: Body < ' tcx > ,
9999
100100 /// The def_id and args of the current function.
101101 pub instance : ty:: Instance < ' tcx > ,
@@ -232,8 +232,8 @@ impl<'tcx, Prov: Provenance> LocalState<'tcx, Prov> {
232232 }
233233}
234234
235- impl < ' mir , ' tcx , Prov : Provenance > Frame < ' mir , ' tcx , Prov > {
236- pub fn with_extra < Extra > ( self , extra : Extra ) -> Frame < ' mir , ' tcx , Prov , Extra > {
235+ impl < ' tcx , Prov : Provenance > Frame < ' tcx , Prov > {
236+ pub fn with_extra < Extra > ( self , extra : Extra ) -> Frame < ' tcx , Prov , Extra > {
237237 Frame {
238238 body : self . body ,
239239 instance : self . instance ,
@@ -247,7 +247,7 @@ impl<'mir, 'tcx, Prov: Provenance> Frame<'mir, 'tcx, Prov> {
247247 }
248248}
249249
250- impl < ' mir , ' tcx , Prov : Provenance , Extra > Frame < ' mir , ' tcx , Prov , Extra > {
250+ impl < ' tcx , Prov : Provenance , Extra > Frame < ' tcx , Prov , Extra > {
251251 /// Get the current location within the Frame.
252252 ///
253253 /// If this is `Left`, we are not currently executing any particular statement in
@@ -517,14 +517,12 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
517517 }
518518
519519 #[ inline( always) ]
520- pub ( crate ) fn stack ( & self ) -> & [ Frame < ' mir , ' tcx , M :: Provenance , M :: FrameExtra > ] {
520+ pub ( crate ) fn stack ( & self ) -> & [ Frame < ' tcx , M :: Provenance , M :: FrameExtra > ] {
521521 M :: stack ( self )
522522 }
523523
524524 #[ inline( always) ]
525- pub ( crate ) fn stack_mut (
526- & mut self ,
527- ) -> & mut Vec < Frame < ' mir , ' tcx , M :: Provenance , M :: FrameExtra > > {
525+ pub ( crate ) fn stack_mut ( & mut self ) -> & mut Vec < Frame < ' tcx , M :: Provenance , M :: FrameExtra > > {
528526 M :: stack_mut ( self )
529527 }
530528
@@ -536,12 +534,12 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
536534 }
537535
538536 #[ inline( always) ]
539- pub fn frame ( & self ) -> & Frame < ' mir , ' tcx , M :: Provenance , M :: FrameExtra > {
537+ pub fn frame ( & self ) -> & Frame < ' tcx , M :: Provenance , M :: FrameExtra > {
540538 self . stack ( ) . last ( ) . expect ( "no call frames exist" )
541539 }
542540
543541 #[ inline( always) ]
544- pub fn frame_mut ( & mut self ) -> & mut Frame < ' mir , ' tcx , M :: Provenance , M :: FrameExtra > {
542+ pub fn frame_mut ( & mut self ) -> & mut Frame < ' tcx , M :: Provenance , M :: FrameExtra > {
545543 self . stack_mut ( ) . last_mut ( ) . expect ( "no call frames exist" )
546544 }
547545
@@ -602,7 +600,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
602600 T : TypeFoldable < TyCtxt < ' tcx > > ,
603601 > (
604602 & self ,
605- frame : & Frame < ' mir , ' tcx , M :: Provenance , M :: FrameExtra > ,
603+ frame : & Frame < ' tcx , M :: Provenance , M :: FrameExtra > ,
606604 value : T ,
607605 ) -> Result < T , ErrorHandled > {
608606 frame
@@ -680,7 +678,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
680678 #[ inline( always) ]
681679 pub ( super ) fn layout_of_local (
682680 & self ,
683- frame : & Frame < ' mir , ' tcx , M :: Provenance , M :: FrameExtra > ,
681+ frame : & Frame < ' tcx , M :: Provenance , M :: FrameExtra > ,
684682 local : mir:: Local ,
685683 layout : Option < TyAndLayout < ' tcx > > ,
686684 ) -> InterpResult < ' tcx , TyAndLayout < ' tcx > > {
@@ -803,7 +801,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
803801 pub fn push_stack_frame (
804802 & mut self ,
805803 instance : ty:: Instance < ' tcx > ,
806- body : & ' mir mir:: Body < ' tcx > ,
804+ body : & ' tcx mir:: Body < ' tcx > ,
807805 return_place : & MPlaceTy < ' tcx , M :: Provenance > ,
808806 return_to_block : StackPopCleanup ,
809807 ) -> InterpResult < ' tcx > {
0 commit comments