Remove unnecessary ValueAnalysisWrapper::Direction
.
`Forward` is the default.
This commit is contained in:
parent
64a8c4ddda
commit
b8d340db14
@ -25,9 +25,7 @@ pub use self::framework::{
|
|||||||
fmt, lattice, visit_results, Analysis, AnalysisDomain, Direction, GenKill, GenKillAnalysis,
|
fmt, lattice, visit_results, Analysis, AnalysisDomain, Direction, GenKill, GenKillAnalysis,
|
||||||
JoinSemiLattice, MaybeReachable, Results, ResultsCursor, ResultsVisitable, ResultsVisitor,
|
JoinSemiLattice, MaybeReachable, Results, ResultsCursor, ResultsVisitable, ResultsVisitor,
|
||||||
};
|
};
|
||||||
use self::framework::{
|
use self::framework::{Backward, CloneAnalysis, ResultsClonedCursor, SwitchIntEdgeEffects};
|
||||||
Backward, CloneAnalysis, Forward, ResultsClonedCursor, SwitchIntEdgeEffects,
|
|
||||||
};
|
|
||||||
use self::move_paths::MoveData;
|
use self::move_paths::MoveData;
|
||||||
|
|
||||||
pub mod debuginfo;
|
pub mod debuginfo;
|
||||||
|
@ -332,8 +332,6 @@ pub struct ValueAnalysisWrapper<T>(pub T);
|
|||||||
impl<'tcx, T: ValueAnalysis<'tcx>> AnalysisDomain<'tcx> for ValueAnalysisWrapper<T> {
|
impl<'tcx, T: ValueAnalysis<'tcx>> AnalysisDomain<'tcx> for ValueAnalysisWrapper<T> {
|
||||||
type Domain = State<T::Value>;
|
type Domain = State<T::Value>;
|
||||||
|
|
||||||
type Direction = crate::Forward;
|
|
||||||
|
|
||||||
const NAME: &'static str = T::NAME;
|
const NAME: &'static str = T::NAME;
|
||||||
|
|
||||||
fn bottom_value(&self, _body: &Body<'tcx>) -> Self::Domain {
|
fn bottom_value(&self, _body: &Body<'tcx>) -> Self::Domain {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user