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.
Required Methods§
fn check_project( &mut self, ctx: &ProjectLintEmitter<'_, '_>, sources: &[ProjectSource<'ast>], )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".