Skip to content

Commit 9b33e63

Browse files
WIP: Perf due to new queries?
1 parent dbe12bf commit 9b33e63

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler/rustc_middle/src/ty/context.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,11 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
679679
}
680680

681681
fn stalled_generators_within(self, defining_anchor: Self::LocalDefId) -> Self::LocalDefIds {
682-
self.stalled_generators_within(defining_anchor)
682+
if self.next_trait_solver_globally() {
683+
self.stalled_generators_within(defining_anchor)
684+
} else {
685+
ty::List::empty()
686+
}
683687
}
684688
}
685689

0 commit comments

Comments
 (0)