mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +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,
|
path: &ModPath,
|
||||||
shadow: BuiltinShadowMode,
|
shadow: BuiltinShadowMode,
|
||||||
) -> ResolvePathResult {
|
) -> ResolvePathResult {
|
||||||
|
let graph = db.crate_graph();
|
||||||
let _cx = stdx::panic_context::enter(format!(
|
let _cx = stdx::panic_context::enter(format!(
|
||||||
"DefMap {:?} {:?} path {}",
|
"DefMap {:?} crate_name={:?} block={:?} path={}",
|
||||||
self.krate, self.block, path
|
self.krate, graph[self.krate].display_name, self.block, path
|
||||||
));
|
));
|
||||||
|
|
||||||
let mut segments = path.segments().iter().enumerate();
|
let mut segments = path.segments().iter().enumerate();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue