diff options
| author | lcnr <rust@lcnr.de> | 2025-06-26 14:51:16 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2025-08-11 15:51:03 +0200 |
| commit | 733aea5e0ae66b1edec46e7fece6cbce47ac0a18 (patch) | |
| tree | ace74c2c044ebd60f6d3314739e5dfed29f28326 /compiler/rustc_next_trait_solver | |
| parent | 577166503aee7290e09374da21f4045c455acfd5 (diff) | |
| download | rust-733aea5e0ae66b1edec46e7fece6cbce47ac0a18.tar.gz rust-733aea5e0ae66b1edec46e7fece6cbce47ac0a18.zip | |
significantly improve provisional cache rebasing
Diffstat (limited to 'compiler/rustc_next_trait_solver')
| -rw-r--r-- | compiler/rustc_next_trait_solver/src/solve/search_graph.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_next_trait_solver/src/solve/search_graph.rs b/compiler/rustc_next_trait_solver/src/solve/search_graph.rs index 12cbc7e8f91..84f8eda4f8d 100644 --- a/compiler/rustc_next_trait_solver/src/solve/search_graph.rs +++ b/compiler/rustc_next_trait_solver/src/solve/search_graph.rs @@ -48,7 +48,9 @@ where ) -> QueryResult<I> { match kind { PathKind::Coinductive => response_no_constraints(cx, input, Certainty::Yes), - PathKind::Unknown => response_no_constraints(cx, input, Certainty::overflow(false)), + PathKind::Unknown | PathKind::ForcedAmbiguity => { + response_no_constraints(cx, input, Certainty::overflow(false)) + } // Even though we know these cycles to be unproductive, we still return // overflow during coherence. This is both as we are not 100% confident in // the implementation yet and any incorrect errors would be unsound there. |
