Skip to content

Commit 9af7122

Browse files
committed
create module so that RUSTC_LOG can filter to just proof trees
1 parent bb743f8 commit 9af7122

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

compiler/rustc_trait_selection/src/solve/eval_ctxt.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ impl<'tcx> InferCtxtEvalExt<'tcx> for InferCtxt<'tcx> {
164164

165165
let tree = ecx.inspect.finalize();
166166
if let Some(tree) = &tree {
167-
debug!(?tree);
167+
// module to allow more granular RUSTC_LOG filtering to just proof tree output
168+
super::inspect::dump::print_tree(tree);
168169
}
169170

170171
assert!(

compiler/rustc_trait_selection/src/solve/inspect.rs

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ use rustc_middle::{
1010
ty,
1111
};
1212

13+
pub mod dump;
14+
1315
#[derive(Eq, PartialEq, Debug, Hash, HashStable)]
1416
pub struct WipGoalEvaluation<'tcx> {
1517
pub uncanonicalized_goal: Goal<'tcx, ty::Predicate<'tcx>>,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
use rustc_middle::traits::solve::inspect::GoalEvaluation;
2+
3+
pub fn print_tree(tree: &GoalEvaluation<'_>) {
4+
debug!(?tree);
5+
}

0 commit comments

Comments
 (0)