Do not report overflow error.
This commit is contained in:
parent
6b348257a1
commit
69e5b2fde0
1 changed files with 3 additions and 0 deletions
|
@ -432,6 +432,9 @@ pub fn impossible_predicates<'tcx>(
|
||||||
debug!("impossible_predicates(predicates={:?})", predicates);
|
debug!("impossible_predicates(predicates={:?})", predicates);
|
||||||
|
|
||||||
let result = tcx.infer_ctxt().enter(|infcx| {
|
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 param_env = ty::ParamEnv::reveal_all();
|
||||||
let mut selcx = SelectionContext::new(&infcx);
|
let mut selcx = SelectionContext::new(&infcx);
|
||||||
let mut fulfill_cx = FulfillmentContext::new();
|
let mut fulfill_cx = FulfillmentContext::new();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue