Skip to content

Commit 14c2933

Browse files
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.
1 parent 6f994da commit 14c2933

File tree

1 file changed

+1
-0
lines changed
  • src/tools/rust-analyzer/crates/ide/src

1 file changed

+1
-0
lines changed

src/tools/rust-analyzer/crates/ide/src/hover.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ fn notable_traits(
505505
)
506506
})
507507
})
508+
.sorted_by_cached_key(|(trait_, _)| trait_.name(db))
508509
.collect::<Vec<_>>()
509510
}
510511

0 commit comments

Comments
 (0)