@@ -90,12 +90,12 @@ impl Drop for SpanGuard {
90
90
}
91
91
92
92
/// A stack frame.
93
- pub struct Frame < ' mir , ' tcx , Prov : Provenance = CtfeProvenance , Extra = ( ) > {
93
+ pub struct Frame < ' tcx , Prov : Provenance = CtfeProvenance , Extra = ( ) > {
94
94
////////////////////////////////////////////////////////////////////////////////
95
95
// Function and callsite information
96
96
////////////////////////////////////////////////////////////////////////////////
97
97
/// The MIR for the function called on this frame.
98
- pub body : & ' mir mir:: Body < ' tcx > ,
98
+ pub body : & ' tcx mir:: Body < ' tcx > ,
99
99
100
100
/// The def_id and args of the current function.
101
101
pub instance : ty:: Instance < ' tcx > ,
@@ -232,8 +232,8 @@ impl<'tcx, Prov: Provenance> LocalState<'tcx, Prov> {
232
232
}
233
233
}
234
234
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 > {
237
237
Frame {
238
238
body : self . body ,
239
239
instance : self . instance ,
@@ -247,7 +247,7 @@ impl<'mir, 'tcx, Prov: Provenance> Frame<'mir, 'tcx, Prov> {
247
247
}
248
248
}
249
249
250
- impl < ' mir , ' tcx , Prov : Provenance , Extra > Frame < ' mir , ' tcx , Prov , Extra > {
250
+ impl < ' tcx , Prov : Provenance , Extra > Frame < ' tcx , Prov , Extra > {
251
251
/// Get the current location within the Frame.
252
252
///
253
253
/// 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> {
517
517
}
518
518
519
519
#[ 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 > ] {
521
521
M :: stack ( self )
522
522
}
523
523
524
524
#[ 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 > > {
528
526
M :: stack_mut ( self )
529
527
}
530
528
@@ -536,12 +534,12 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
536
534
}
537
535
538
536
#[ 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 > {
540
538
self . stack ( ) . last ( ) . expect ( "no call frames exist" )
541
539
}
542
540
543
541
#[ 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 > {
545
543
self . stack_mut ( ) . last_mut ( ) . expect ( "no call frames exist" )
546
544
}
547
545
@@ -602,7 +600,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
602
600
T : TypeFoldable < TyCtxt < ' tcx > > ,
603
601
> (
604
602
& self ,
605
- frame : & Frame < ' mir , ' tcx , M :: Provenance , M :: FrameExtra > ,
603
+ frame : & Frame < ' tcx , M :: Provenance , M :: FrameExtra > ,
606
604
value : T ,
607
605
) -> Result < T , ErrorHandled > {
608
606
frame
@@ -680,7 +678,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
680
678
#[ inline( always) ]
681
679
pub ( super ) fn layout_of_local (
682
680
& self ,
683
- frame : & Frame < ' mir , ' tcx , M :: Provenance , M :: FrameExtra > ,
681
+ frame : & Frame < ' tcx , M :: Provenance , M :: FrameExtra > ,
684
682
local : mir:: Local ,
685
683
layout : Option < TyAndLayout < ' tcx > > ,
686
684
) -> InterpResult < ' tcx , TyAndLayout < ' tcx > > {
@@ -803,7 +801,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
803
801
pub fn push_stack_frame (
804
802
& mut self ,
805
803
instance : ty:: Instance < ' tcx > ,
806
- body : & ' mir mir:: Body < ' tcx > ,
804
+ body : & ' tcx mir:: Body < ' tcx > ,
807
805
return_place : & MPlaceTy < ' tcx , M :: Provenance > ,
808
806
return_to_block : StackPopCleanup ,
809
807
) -> InterpResult < ' tcx > {
0 commit comments