Skip to content

Commit 9d44e9e

Browse files
committed
enable using the evaluation cache on predicates with LBRs
There is no reason not to do it.
1 parent 53a4b39 commit 9d44e9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/traits/fulfill.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ impl<'a, 'b, 'gcx, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'b, 'gcx,
292292
ty::Predicate::Trait(ref data) => {
293293
let trait_obligation = obligation.with(data.clone());
294294

295-
if data.is_global() && !data.has_late_bound_regions() {
295+
if data.is_global() {
296296
// no type variables present, can use evaluation for better caching.
297297
// FIXME: consider caching errors too.
298298
if self.selcx.infcx().predicate_must_hold(&obligation) {

0 commit comments

Comments
 (0)