Skip to content

Commit 9f5949f

Browse files
committed
Adapt for upstream AnalysisDomain removal
1 parent 43c994a commit 9f5949f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/preempt_count/dataflow.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use rustc_middle::mir::{BasicBlock, Body, TerminatorEdges, TerminatorKind};
66
use rustc_middle::ty::{self, Instance, ParamEnv};
77
use rustc_mir_dataflow::JoinSemiLattice;
8-
use rustc_mir_dataflow::{fmt::DebugWithContext, Analysis, AnalysisDomain};
8+
use rustc_mir_dataflow::{fmt::DebugWithContext, Analysis};
99

1010
use super::{Error, UseSite, UseSiteKind};
1111
use crate::ctxt::AnalysisCtxt;
@@ -199,7 +199,7 @@ pub struct AdjustmentComputation<'mir, 'tcx, 'checker> {
199199

200200
impl DebugWithContext<AdjustmentComputation<'_, '_, '_>> for AdjustmentBoundsOrError {}
201201

202-
impl<'tcx> AnalysisDomain<'tcx> for AdjustmentComputation<'_, 'tcx, '_> {
202+
impl<'tcx> Analysis<'tcx> for AdjustmentComputation<'_, 'tcx, '_> {
203203
// The number here indicates the offset in relation to the function's entry point.
204204
type Domain = AdjustmentBoundsOrError;
205205

@@ -215,9 +215,7 @@ impl<'tcx> AnalysisDomain<'tcx> for AdjustmentComputation<'_, 'tcx, '_> {
215215
hi: Some(1),
216216
});
217217
}
218-
}
219218

220-
impl<'tcx> Analysis<'tcx> for AdjustmentComputation<'_, 'tcx, '_> {
221219
fn apply_statement_effect(
222220
&mut self,
223221
_state: &mut Self::Domain,

0 commit comments

Comments
 (0)