Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/next_solver/inspect.rs')
-rw-r--r--crates/hir-ty/src/next_solver/inspect.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/hir-ty/src/next_solver/inspect.rs b/crates/hir-ty/src/next_solver/inspect.rs
index 566f72fbd8..fdb1fa3d05 100644
--- a/crates/hir-ty/src/next_solver/inspect.rs
+++ b/crates/hir-ty/src/next_solver/inspect.rs
@@ -24,6 +24,8 @@ use crate::{
},
};
+pub(crate) use rustc_next_trait_solver::solve::inspect::*;
+
pub(crate) struct InspectConfig {
pub(crate) max_depth: usize,
}
@@ -319,6 +321,10 @@ impl<'a, 'db> InspectGoal<'a, 'db> {
self.result
}
+ pub(crate) fn source(&self) -> GoalSource {
+ self.source
+ }
+
pub(crate) fn depth(&self) -> usize {
self.depth
}