diff options
| author | Michael Goulet <michael@errs.io> | 2025-04-22 23:31:22 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-04-23 15:09:25 +0000 |
| commit | f943f73db4791d64ff83d72986da8d6250c42933 (patch) | |
| tree | 4474dcc7ba139e0d9f70a7754c31694fcf7186ee /compiler/rustc_trait_selection/src/traits/select | |
| parent | 7c1661f9457825df6e6bbf4869be3cad59b608a9 (diff) | |
| download | rust-f943f73db4791d64ff83d72986da8d6250c42933.tar.gz rust-f943f73db4791d64ff83d72986da8d6250c42933.zip | |
More
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/select')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/select/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs index 5255b57c791..c7ce13c8014 100644 --- a/compiler/rustc_trait_selection/src/traits/select/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/select/mod.rs @@ -1498,7 +1498,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> { // However, if we disqualify *all* goals from being cached, perf suffers. // This is likely fixed by better caching in general in the new solver. // See: <https://github.com/rust-lang/rust/issues/132064>. - TypingMode::Analysis { defining_opaque_types, stalled_generators: _ } + TypingMode::Analysis { + defining_opaque_types_and_generators: defining_opaque_types, + } | TypingMode::Borrowck { defining_opaque_types } => { defining_opaque_types.is_empty() || !pred.has_opaque_types() } |
