Rollup merge of #96752 - scottmcm:error-sorting, r=compiler-errors
Put the incompatible_closure_captures lint messages in alphabetical order Looks like they were in hash order before, which was causing me trouble in #94598, so this PR sorts the errors by trait name.
This commit is contained in:
commit
28d85ab8c4
4 changed files with 7 additions and 3 deletions
|
@ -914,6 +914,10 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||
reasons.auto_traits.extend(auto_trait_reasons);
|
||||
reasons.drop_order = drop_order;
|
||||
|
||||
// `auto_trait_reasons` are in hashset order, so sort them to put the
|
||||
// diagnostics we emit later in a cross-platform-consistent order.
|
||||
reasons.auto_traits.sort_unstable();
|
||||
|
||||
reasons
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue