mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Add crate name to nameres panic context
This commit is contained in:
parent
fd30bd179c
commit
65bb5d7511
@ -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 New Issue
Block a user