mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Some more fragment fixes
This commit is contained in:
parent
e8f1abf5f7
commit
cb7b4a5d5b
5 changed files with 115 additions and 148 deletions
|
@ -400,10 +400,7 @@ fn module_def_doctest(db: &RootDatabase, def: hir::ModuleDef) -> Option<Runnable
|
|||
let def_name = def.name(db)?;
|
||||
let path = (|| {
|
||||
let mut path = String::new();
|
||||
def.module(db)?
|
||||
.path_to_root(db)
|
||||
.into_iter()
|
||||
.rev()
|
||||
def.canonical_module_path(db)?
|
||||
.flat_map(|it| it.name(db))
|
||||
.for_each(|name| format_to!(path, "{}::", name));
|
||||
// This probably belongs to canonical_path?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue