about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Bergdoll <lukas.bergdoll@gmail.com>2024-06-17 22:32:01 +0200
committerLukas Bergdoll <lukas.bergdoll@gmail.com>2024-06-17 22:32:01 +0200
commitb7deff3a0de56941b554e6a116f08c697e59ee51 (patch)
tree35b57e42e19a4dfe3e50acd609b7e92b157d7212
parent732616998c06d8d9024db3e1f62e64ad0b50ed30 (diff)
downloadrust-b7deff3a0de56941b554e6a116f08c697e59ee51.tar.gz
rust-b7deff3a0de56941b554e6a116f08c697e59ee51.zip
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.
-rw-r--r--library/core/src/slice/sort/shared/smallsort.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/core/src/slice/sort/shared/smallsort.rs b/library/core/src/slice/sort/shared/smallsort.rs
index 567a7090ecd..5111ed8756b 100644
--- a/library/core/src/slice/sort/shared/smallsort.rs
+++ b/library/core/src/slice/sort/shared/smallsort.rs
@@ -140,6 +140,8 @@ impl<T: FreezeMarker> UnstableSmallSortFreezeTypeImpl for T {
 #[rustc_unsafe_specialization_marker]
 trait CopyMarker {}
 
+impl<T: Copy> CopyMarker for T {}
+
 impl<T: FreezeMarker + CopyMarker> UnstableSmallSortFreezeTypeImpl for T {
     #[inline(always)]
     fn small_sort_threshold() -> usize {