Untouch back perf sensetive code 😅
This commit is contained in:
parent
c21b1f742e
commit
4a6d9de828
1 changed files with 7 additions and 5 deletions
|
@ -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
|
})()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue