pub trait MirLint<'tcx> {
    fn run_lint(&self, tcx: TyCtxt<'tcx>, body: &Body<'tcx>);

    fn name(&self) -> &str { ... }
    fn is_enabled(&self, _sess: &Session) -> bool { ... }
}
Expand description

Just like MirPass, except it cannot mutate Body.

Required Methods§

Provided Methods§

Implementors§