pub trait ProjectLintPass<'ast>: Send + Sync {
// Required method
fn check_project(
&mut self,
ctx: &ProjectLintEmitter<'_, '_>,
sources: &[ProjectSource<'ast>],
);
}Expand description
Trait for lints that need to inspect every input source at once (e.g. cross-file checks).
check_project runs once after all per-file super::EarlyLintPass /
super::LateLintPass passes have completed. Passes that need HIR or type-check info access
it through ProjectLintEmitter::gcx.