We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b34825 commit 69e5b2fCopy full SHA for 69e5b2f
compiler/rustc_trait_selection/src/traits/mod.rs
@@ -432,6 +432,9 @@ pub fn impossible_predicates<'tcx>(
432
debug!("impossible_predicates(predicates={:?})", predicates);
433
434
let result = tcx.infer_ctxt().enter(|infcx| {
435
+ // HACK: Set tainted by errors to gracefully exit in case of overflow.
436
+ infcx.set_tainted_by_errors();
437
+
438
let param_env = ty::ParamEnv::reveal_all();
439
let mut selcx = SelectionContext::new(&infcx);
440
let mut fulfill_cx = FulfillmentContext::new();
0 commit comments