diff options
| author | Michael Goulet <michael@errs.io> | 2025-04-01 23:03:12 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-04-22 17:04:59 +0000 |
| commit | 1727badf77704a5c44c40a30df833702ed309324 (patch) | |
| tree | 3c02217a59f446247a3cf6e2ff1fae10bca264da /compiler | |
| parent | a9229833932e2fc094ea60121c269c127dff100b (diff) | |
| download | rust-1727badf77704a5c44c40a30df833702ed309324.tar.gz rust-1727badf77704a5c44c40a30df833702ed309324.zip | |
Don't compute query unless in new solver
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_middle/src/ty/context.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index f8f66b58c1d..f5872f0269e 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -679,7 +679,11 @@ impl<'tcx> Interner for TyCtxt<'tcx> { } fn stalled_generators_within(self, defining_anchor: Self::LocalDefId) -> Self::LocalDefIds { - self.stalled_generators_within(defining_anchor) + if self.next_trait_solver_globally() { + self.stalled_generators_within(defining_anchor) + } else { + ty::List::empty() + } } } |
