Skip to content

Commit ab8e3c0

Browse files
Merge #10158
10158: Add crate name to nameres panic context r=jonas-schievink a=jonas-schievink bors r+ Co-authored-by: Jonas Schievink <[email protected]>
2 parents c16e647 + 65bb5d7 commit ab8e3c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/hir_def/src/nameres/path_resolution.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,10 @@ impl DefMap {
178178
path: &ModPath,
179179
shadow: BuiltinShadowMode,
180180
) -> ResolvePathResult {
181+
let graph = db.crate_graph();
181182
let _cx = stdx::panic_context::enter(format!(
182-
"DefMap {:?} {:?} path {}",
183-
self.krate, self.block, path
183+
"DefMap {:?} crate_name={:?} block={:?} path={}",
184+
self.krate, graph[self.krate].display_name, self.block, path
184185
));
185186

186187
let mut segments = path.segments().iter().enumerate();

0 commit comments

Comments
 (0)