mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
feat: add hover config for showing container bounds
This commit is contained in:
parent
184ddc6f5b
commit
78118f98f6
3 changed files with 60 additions and 14 deletions
|
@ -430,6 +430,7 @@ pub(super) fn definition(
|
|||
}
|
||||
label
|
||||
}
|
||||
Definition::Function(fn_) => fn_.display_with_container_bounds(db, true).to_string(),
|
||||
_ => def.label(db),
|
||||
};
|
||||
let docs = def.docs(db, famous_defs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue