about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-17 19:00:20 +0000
committerbors <bors@rust-lang.org>2023-11-17 19:00:20 +0000
commit255eed40c45fcf108ba844b4ad126bdc4e7a18df (patch)
tree72ded6d048a69601589ee40f402e51984b1af1f8
parentbc978217b32cd10abd140bec1724a218f43629fb (diff)
parenta54c0dafc8b670802b8ba8dc8ba1a65766cdd08c (diff)
downloadrust-255eed40c45fcf108ba844b4ad126bdc4e7a18df.tar.gz
rust-255eed40c45fcf108ba844b4ad126bdc4e7a18df.zip
Auto merge of #15925 - lnicola:pathres-nodebug, r=lnicola
internal: Remove debugging code in path resolution

Closes #15924
-rw-r--r--crates/hir-def/src/nameres/path_resolution.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/crates/hir-def/src/nameres/path_resolution.rs b/crates/hir-def/src/nameres/path_resolution.rs
index 460a908b6db..4c1b8f306c5 100644
--- a/crates/hir-def/src/nameres/path_resolution.rs
+++ b/crates/hir-def/src/nameres/path_resolution.rs
@@ -183,15 +183,6 @@ impl DefMap {
         shadow: BuiltinShadowMode,
         expected_macro_subns: Option<MacroSubNs>,
     ) -> ResolvePathResult {
-        let graph = db.crate_graph();
-        let _cx = stdx::panic_context::enter(format!(
-            "DefMap {:?} crate_name={:?} block={:?} path={}",
-            self.krate,
-            graph[self.krate].display_name,
-            self.block,
-            path.display(db.upcast())
-        ));
-
         let mut segments = path.segments().iter().enumerate();
         let mut curr_per_ns = match path.kind {
             PathKind::DollarCrate(krate) => {