5
5
use rustc_middle:: mir:: { BasicBlock , Body , TerminatorEdges , TerminatorKind } ;
6
6
use rustc_middle:: ty:: { self , Instance , ParamEnv } ;
7
7
use rustc_mir_dataflow:: JoinSemiLattice ;
8
- use rustc_mir_dataflow:: { fmt:: DebugWithContext , Analysis , AnalysisDomain } ;
8
+ use rustc_mir_dataflow:: { fmt:: DebugWithContext , Analysis } ;
9
9
10
10
use super :: { Error , UseSite , UseSiteKind } ;
11
11
use crate :: ctxt:: AnalysisCtxt ;
@@ -199,7 +199,7 @@ pub struct AdjustmentComputation<'mir, 'tcx, 'checker> {
199
199
200
200
impl DebugWithContext < AdjustmentComputation < ' _ , ' _ , ' _ > > for AdjustmentBoundsOrError { }
201
201
202
- impl < ' tcx > AnalysisDomain < ' tcx > for AdjustmentComputation < ' _ , ' tcx , ' _ > {
202
+ impl < ' tcx > Analysis < ' tcx > for AdjustmentComputation < ' _ , ' tcx , ' _ > {
203
203
// The number here indicates the offset in relation to the function's entry point.
204
204
type Domain = AdjustmentBoundsOrError ;
205
205
@@ -215,9 +215,7 @@ impl<'tcx> AnalysisDomain<'tcx> for AdjustmentComputation<'_, 'tcx, '_> {
215
215
hi : Some ( 1 ) ,
216
216
} ) ;
217
217
}
218
- }
219
218
220
- impl < ' tcx > Analysis < ' tcx > for AdjustmentComputation < ' _ , ' tcx , ' _ > {
221
219
fn apply_statement_effect (
222
220
& mut self ,
223
221
_state : & mut Self :: Domain ,
0 commit comments