Unnamed repository; edit this file 'description' to name the repository.
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.
| -rw-r--r-- | crates/ide/src/hover.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ide/src/hover.rs b/crates/ide/src/hover.rs index 5cab8efa79..6fd522095e 100644 --- a/crates/ide/src/hover.rs +++ b/crates/ide/src/hover.rs @@ -505,6 +505,7 @@ fn notable_traits( ) }) }) + .sorted_by_cached_key(|(trait_, _)| trait_.name(db)) .collect::<Vec<_>>() } |