diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2023-01-18 10:47:31 +0100 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2023-01-19 10:40:54 +0100 |
| commit | c1b358945a4e1d4877b21c02fa52afc5ff2b39a7 (patch) | |
| tree | 458ebbf70907814d2f261efd39314f952e919d11 | |
| parent | 465ed5bd46116e55d801a42a34659d558d00b0d7 (diff) | |
| download | rust-c1b358945a4e1d4877b21c02fa52afc5ff2b39a7.tar.gz rust-c1b358945a4e1d4877b21c02fa52afc5ff2b39a7.zip | |
Allow for more efficient sorting when exporting Unord collections.
| -rw-r--r-- | clippy_lints/src/inherent_impl.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/missing_trait_methods.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/inherent_impl.rs b/clippy_lints/src/inherent_impl.rs index 81b37ce5dfc..e9b2e31a769 100644 --- a/clippy_lints/src/inherent_impl.rs +++ b/clippy_lints/src/inherent_impl.rs @@ -54,7 +54,7 @@ impl<'tcx> LateLintPass<'tcx> for MultipleInherentImpl { let inherent_impls = cx .tcx - .with_stable_hashing_context(|hcx| cx.tcx.crate_inherent_impls(()).inherent_impls.to_sorted(&hcx)); + .with_stable_hashing_context(|hcx| cx.tcx.crate_inherent_impls(()).inherent_impls.to_sorted(&hcx, true)); for (_, impl_ids) in inherent_impls.into_iter().filter(|(&id, impls)| { impls.len() > 1 diff --git a/clippy_lints/src/missing_trait_methods.rs b/clippy_lints/src/missing_trait_methods.rs index 1c61c6e551c..3371b4cce32 100644 --- a/clippy_lints/src/missing_trait_methods.rs +++ b/clippy_lints/src/missing_trait_methods.rs @@ -81,7 +81,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingTraitMethods { } cx.tcx.with_stable_hashing_context(|hcx| { - for assoc in provided.values_sorted(&hcx) { + for assoc in provided.values_sorted(&hcx, true) { let source_map = cx.tcx.sess.source_map(); let definition_span = source_map.guess_head_span(cx.tcx.def_span(assoc.def_id)); |
