pub(crate) trait MirLint<'tcx> {
// Required method
fn run_lint(&self, tcx: TyCtxt<'tcx>, body: &Body<'tcx>);
// Provided methods
fn name(&self) -> &'static str { ... }
fn is_enabled(&self, _sess: &Session) -> bool { ... }
}Expand description
Just like MirPass, except it cannot mutate Body, and MIR dumping is
disabled (via the Lint adapter).
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".