Function rustc_mir_transform::pass_manager::should_run_pass

source ยท
pub fn should_run_pass<'tcx, P>(tcx: TyCtxt<'tcx>, pass: &P) -> bool
where P: MirPass<'tcx> + ?Sized,