remove hack fix since we don't have no overflow diagnostic

This commit is contained in:
yukang 2022-08-22 22:22:15 +08:00
parent 8be37644db
commit f466a7563d

View File

@ -473,9 +473,6 @@ pub fn impossible_predicates<'tcx>(
debug!("impossible_predicates(predicates={:?})", predicates);
let result = tcx.infer_ctxt().enter(|infcx| {
// HACK: Set tainted by errors to gracefully exit in case of overflow.
infcx.set_tainted_by_errors();
let param_env = ty::ParamEnv::reveal_all();
let ocx = ObligationCtxt::new(&infcx);
let predicates = ocx.normalize(ObligationCause::dummy(), param_env, predicates);