Skip to content

Commit b1a4784

Browse files
Augment panic context when resolving path
1 parent 545cdf9 commit b1a4784

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/hir_def/src/nameres/path_resolution.rs

+5
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ impl DefMap {
178178
path: &ModPath,
179179
shadow: BuiltinShadowMode,
180180
) -> ResolvePathResult {
181+
let _cx = stdx::panic_context::enter(format!(
182+
"DefMap {:?} {:?} path {}",
183+
self.krate, self.block, path
184+
));
185+
181186
let mut segments = path.segments().iter().enumerate();
182187
let mut curr_per_ns: PerNs = match path.kind {
183188
PathKind::DollarCrate(krate) => {

0 commit comments

Comments
 (0)