Skip to content

Commit c1b3589

Browse files
Allow for more efficient sorting when exporting Unord collections.
1 parent 465ed5b commit c1b3589

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/inherent_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl<'tcx> LateLintPass<'tcx> for MultipleInherentImpl {
5454

5555
let inherent_impls = cx
5656
.tcx
57-
.with_stable_hashing_context(|hcx| cx.tcx.crate_inherent_impls(()).inherent_impls.to_sorted(&hcx));
57+
.with_stable_hashing_context(|hcx| cx.tcx.crate_inherent_impls(()).inherent_impls.to_sorted(&hcx, true));
5858

5959
for (_, impl_ids) in inherent_impls.into_iter().filter(|(&id, impls)| {
6060
impls.len() > 1

clippy_lints/src/missing_trait_methods.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingTraitMethods {
8181
}
8282

8383
cx.tcx.with_stable_hashing_context(|hcx| {
84-
for assoc in provided.values_sorted(&hcx) {
84+
for assoc in provided.values_sorted(&hcx, true) {
8585
let source_map = cx.tcx.sess.source_map();
8686
let definition_span = source_map.guess_head_span(cx.tcx.def_span(assoc.def_id));
8787

0 commit comments

Comments
 (0)