mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 19:17:12 +00:00
Sort notable traits in hover
Previously it was ordered by what accidentally happened to be the crate graph order, which isn't sensible, plus it caused changes when any change was done to salsa IDs.
This commit is contained in:
parent
32052e5054
commit
41227f01d2
1 changed files with 1 additions and 0 deletions
|
|
@ -505,6 +505,7 @@ fn notable_traits(
|
|||
)
|
||||
})
|
||||
})
|
||||
.sorted_by_cached_key(|(trait_, _)| trait_.name(db))
|
||||
.collect::<Vec<_>>()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue