General trait for static analysis Developers may reuse this trait to implement their own analysis
| 9 | /// General trait for static analysis |
| 10 | /// Developers may reuse this trait to implement their own analysis |
| 11 | pub trait StaticAnalysis<'tcx, 'a, 'compiler> { |
| 12 | fn new(context: &'a mut GlobalContext<'tcx, 'compiler>) -> Self; |
| 13 | fn run(&mut self) -> Result<AnalysisInfo>; |
| 14 | fn analyze_function<DomainType>( |
| 15 | &mut self, |
| 16 | def_id: DefId, |
| 17 | abstract_domain: AbstractDomain<DomainType>, |
| 18 | ) where |
| 19 | DomainType: NumericalDomainType, |
| 20 | IntervalAbstractDomain<DomainType>: GetDomainType; |
| 21 | fn emit_diagnostics(&mut self); |
| 22 | } |
nothing calls this directly
no outgoing calls
no test coverage detected