Skip to content

Commit f466a75

Browse files
committed
remove hack fix since we don't have no overflow diagnostic
1 parent 8be3764 commit f466a75

File tree

1 file changed

+0
-3
lines changed
  • compiler/rustc_trait_selection/src/traits

1 file changed

+0
-3
lines changed

compiler/rustc_trait_selection/src/traits/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,9 +473,6 @@ pub fn impossible_predicates<'tcx>(
473473
debug!("impossible_predicates(predicates={:?})", predicates);
474474

475475
let result = tcx.infer_ctxt().enter(|infcx| {
476-
// HACK: Set tainted by errors to gracefully exit in case of overflow.
477-
infcx.set_tainted_by_errors();
478-
479476
let param_env = ty::ParamEnv::reveal_all();
480477
let ocx = ObligationCtxt::new(&infcx);
481478
let predicates = ocx.normalize(ObligationCause::dummy(), param_env, predicates);

0 commit comments

Comments
 (0)