mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-18 03:13:31 +00:00
internal: Do not render closure ids in hover messages
They are not useful
This commit is contained in:
parent
4284637e64
commit
721e43e9d3
3 changed files with 3 additions and 9 deletions
|
|
@ -890,12 +890,11 @@ fn closure_ty(
|
|||
} else {
|
||||
String::new()
|
||||
};
|
||||
let mut markup = format!("```rust\n{}", c.display_with_id(sema.db, edition));
|
||||
let mut markup = format!("```rust\n{}\n```", c.display_with_impl(sema.db, edition));
|
||||
|
||||
if let Some(trait_) = c.fn_trait(sema.db).get_id(sema.db, original.krate(sema.db).into()) {
|
||||
push_new_def(hir::Trait::from(trait_).into())
|
||||
}
|
||||
format_to!(markup, "\n{}\n```", c.display_with_impl(sema.db, edition),);
|
||||
if let Some(layout) =
|
||||
render_memory_layout(config.memory_layout, || original.layout(sema.db), |_| None, |_| None)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue