Make stable_sort_primitive message less authoritative #8241
Labels
A-category
Area: Categorization of lints
A-documentation
Area: Adding or improving documentation
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
good-first-issue
These issues are a good way to get started with Clippy
Description
The current message for
stable_sort_primitive
says:Although it is a reasonable guideline and typically true for random data, it is not always true. For example, the append benchmark in https://gist.github.com/jongiddy/b29ce7d2251775dcf24c595bc245891b demonstrates that stable sort can be significantly faster for a scenario where a sorted vector is extended with new data and resorted.
Because of this, the initial message should be less definite:
and the linked message should also be less definite, and suggest benchmarking specific situations.
Version
No response
Additional Labels
No response
The text was updated successfully, but these errors were encountered: