Trait rustc_mir_transform::pass_manager::MirLint
source · pub trait MirLint<'tcx> {
fn run_lint(&self, tcx: TyCtxt<'tcx>, body: &Body<'tcx>);
fn name(&self) -> Cow<'_, str> { ... }
fn is_enabled(&self, _sess: &Session) -> bool { ... }
}
Expand description
Just like MirPass
, except it cannot mutate Body
.