pub(crate) fn should_run_pass<'tcx, P>( tcx: TyCtxt<'tcx>, pass: &P, optimizations: Optimizations, ) -> boolwhere P: MirPass<'tcx> + ?Sized,