From ea1ab74eb6d222194892b92f3db5c3d300e9865a Mon Sep 17 00:00:00 2001 From: Lukas Bergdoll Date: Mon, 17 Jun 2024 22:32:01 +0200 Subject: [PATCH] Add missing CopyMarker impl Due to refactoring the const_trait usage, the CopyMarker impl was accidentally deleted, which had the consequence that the Copy specialization for the small-sort was never picked. --- core/src/slice/sort/shared/smallsort.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/slice/sort/shared/smallsort.rs b/core/src/slice/sort/shared/smallsort.rs index 567a7090ecd7d..5111ed8756bf1 100644 --- a/core/src/slice/sort/shared/smallsort.rs +++ b/core/src/slice/sort/shared/smallsort.rs @@ -140,6 +140,8 @@ impl UnstableSmallSortFreezeTypeImpl for T { #[rustc_unsafe_specialization_marker] trait CopyMarker {} +impl CopyMarker for T {} + impl UnstableSmallSortFreezeTypeImpl for T { #[inline(always)] fn small_sort_threshold() -> usize {