mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
Merge #10158
10158: Add crate name to nameres panic context r=jonas-schievink a=jonas-schievink bors r+ Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
This commit is contained in:
commit
ab8e3c0a6a
1 changed files with 3 additions and 2 deletions
|
@ -178,9 +178,10 @@ impl DefMap {
|
|||
path: &ModPath,
|
||||
shadow: BuiltinShadowMode,
|
||||
) -> ResolvePathResult {
|
||||
let graph = db.crate_graph();
|
||||
let _cx = stdx::panic_context::enter(format!(
|
||||
"DefMap {:?} {:?} path {}",
|
||||
self.krate, self.block, path
|
||||
"DefMap {:?} crate_name={:?} block={:?} path={}",
|
||||
self.krate, graph[self.krate].display_name, self.block, path
|
||||
));
|
||||
|
||||
let mut segments = path.segments().iter().enumerate();
|
||||
|
|
Loading…
Reference in a new issue