Skip to content

Commit 41227f0

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 32052e5 commit 41227f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/ide/src/hover.rs

+1
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)