1
Fork 0

Untouch back perf sensetive code 😅

This commit is contained in:
Maybe Waffle 2023-01-14 14:15:40 +00:00
parent c21b1f742e
commit 4a6d9de828

View file

@ -208,12 +208,14 @@ impl<'a, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'tcx> {
_ => { _ => {
// This `for` loop was once a call to `all()`, but this lower-level // This `for` loop was once a call to `all()`, but this lower-level
// form was a perf win. See #64545 for details. // form was a perf win. See #64545 for details.
for &infer_var in &pending_obligation.stalled_on { (|| {
if self.selcx.infcx.ty_or_const_infer_var_changed(infer_var) { for &infer_var in &pending_obligation.stalled_on {
return true; if self.selcx.infcx.ty_or_const_infer_var_changed(infer_var) {
return true;
}
} }
} false
false })()
} }
} }
} }