mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-30 03:27:44 +00:00
Improve hover module path rendering
This commit is contained in:
parent
1b52a6680f
commit
3bae1f0a1b
5 changed files with 133 additions and 23 deletions
|
|
@ -92,11 +92,11 @@ impl Definition {
|
|||
Definition::ExternCrateDecl(it) => it.module(db),
|
||||
Definition::DeriveHelper(it) => it.derive().module(db),
|
||||
Definition::InlineAsmOperand(it) => it.parent(db).module(db),
|
||||
Definition::ToolModule(t) => t.krate().root_module(),
|
||||
Definition::BuiltinAttr(_)
|
||||
| Definition::BuiltinType(_)
|
||||
| Definition::BuiltinLifetime(_)
|
||||
| Definition::TupleField(_)
|
||||
| Definition::ToolModule(_)
|
||||
| Definition::InlineAsmRegOrRegClass(_) => return None,
|
||||
};
|
||||
Some(module)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue