We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 938434a commit a7ec045Copy full SHA for a7ec045
compiler/rustc_trait_selection/src/solve/search_graph/mod.rs
@@ -254,7 +254,8 @@ impl<'tcx> SearchGraph<'tcx> {
254
// dependencies, our non-root goal may no longer appear as child of the root goal.
255
//
256
// See https://github.com/rust-lang/rust/pull/108071 for some additional context.
257
- let should_cache_globally = !self.overflow_data.did_overflow() || self.stack.is_empty();
+ let should_cache_globally = matches!(self.solver_mode(), SolverMode::Normal)
258
+ && (!self.overflow_data.did_overflow() || self.stack.is_empty());
259
if should_cache_globally {
260
tcx.new_solver_evaluation_cache.insert(
261
current_goal.goal,
0 commit comments