@@ -430,7 +430,7 @@ impl CheckerState {
430430 alloc : Allocation ,
431431 val : & CheckerValue ,
432432 allocs : & [ Allocation ] ,
433- checker : & Checker < ' a , F > ,
433+ checker : & Checker < ' a , ' _ , F > ,
434434 ) -> Result < ( ) , CheckerError > {
435435 if alloc == Allocation :: none ( ) {
436436 return Err ( CheckerError :: MissingAllocation { inst, op } ) ;
@@ -465,7 +465,7 @@ impl CheckerState {
465465 & self ,
466466 pos : InstPosition ,
467467 checkinst : & CheckerInst ,
468- checker : & Checker < ' a , F > ,
468+ checker : & Checker < ' a , ' _ , F > ,
469469 ) -> Result < ( ) , CheckerError > {
470470 let default_val = Default :: default ( ) ;
471471 match checkinst {
@@ -627,7 +627,7 @@ impl CheckerState {
627627 op : Operand ,
628628 alloc : Allocation ,
629629 allocs : & [ Allocation ] ,
630- checker : & Checker < ' a , F > ,
630+ checker : & Checker < ' a , ' _ , F > ,
631631 ) -> Result < ( ) , CheckerError > {
632632 match op. constraint ( ) {
633633 OperandConstraint :: Any => { }
@@ -691,21 +691,21 @@ pub(crate) enum CheckerInst {
691691}
692692
693693#[ derive( Debug ) ]
694- pub struct Checker < ' a , F : Function > {
694+ pub struct Checker < ' a , ' r , F : Function > {
695695 f : & ' a F ,
696696 bb_in : FxHashMap < Block , CheckerState > ,
697697 bb_insts : FxHashMap < Block , Vec < CheckerInst > > ,
698698 edge_insts : FxHashMap < ( Block , Block ) , Vec < CheckerInst > > ,
699- machine_env : & ' a MachineEnv ,
699+ machine_env : & ' a MachineEnv < ' r > ,
700700 stack_pregs : PRegSet ,
701701}
702702
703- impl < ' a , F : Function > Checker < ' a , F > {
703+ impl < ' a , ' r , F : Function > Checker < ' a , ' r , F > {
704704 /// Create a new checker for the given function, initializing CFG
705705 /// info immediately. The client should call the `add_*()`
706706 /// methods to add abstract instructions to each BB before
707707 /// invoking `run()` to check for errors.
708- pub fn new ( f : & ' a F , machine_env : & ' a MachineEnv ) -> Checker < ' a , F > {
708+ pub fn new ( f : & ' a F , machine_env : & ' a MachineEnv < ' r > ) -> Checker < ' a , ' r , F > {
709709 let mut bb_in = FxHashMap :: default ( ) ;
710710 let mut bb_insts = FxHashMap :: default ( ) ;
711711 let mut edge_insts = FxHashMap :: default ( ) ;
0 commit comments