mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Add crate name to nameres panic context
This commit is contained in:
parent
fd30bd179c
commit
65bb5d7511
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