about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2024-05-21 18:16:47 +0000
committerlcnr <rust@lcnr.de>2024-05-30 15:26:48 +0200
commit86cbabbb9d41c8e7bb3b4716e1bb224163532f4e (patch)
tree8f9c87da97fe9250336695b9c2d3a06f0e8de4ba
parentf7d14b741e0be6a2ca49e34bd1e6bf827647e30f (diff)
downloadrust-86cbabbb9d41c8e7bb3b4716e1bb224163532f4e.tar.gz
rust-86cbabbb9d41c8e7bb3b4716e1bb224163532f4e.zip
add logging to search graph
-rw-r--r--compiler/rustc_trait_selection/src/solve/search_graph.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/solve/search_graph.rs b/compiler/rustc_trait_selection/src/solve/search_graph.rs
index f1b8bf4676e..84878fea101 100644
--- a/compiler/rustc_trait_selection/src/solve/search_graph.rs
+++ b/compiler/rustc_trait_selection/src/solve/search_graph.rs
@@ -281,6 +281,7 @@ impl<'tcx> SearchGraph<TyCtxt<'tcx>> {
         };
 
         if let Some(result) = self.lookup_global_cache(tcx, input, available_depth, inspect) {
+            debug!("global cache hit");
             return result;
         }
 
@@ -365,7 +366,7 @@ impl<'tcx> SearchGraph<TyCtxt<'tcx>> {
                 for _ in 0..FIXPOINT_STEP_LIMIT {
                     match self.fixpoint_step_in_task(tcx, input, inspect, &mut prove_goal) {
                         StepResult::Done(final_entry, result) => return (final_entry, result),
-                        StepResult::HasChanged => {}
+                        StepResult::HasChanged => debug!("fixpoint changed provisional results"),
                     }
                 }