Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ea1ab74

Browse files
committedJun 17, 2024
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.
1 parent 384c205 commit ea1ab74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎core/src/slice/sort/shared/smallsort.rs

+2
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ impl<T: FreezeMarker> UnstableSmallSortFreezeTypeImpl for T {
140140
#[rustc_unsafe_specialization_marker]
141141
trait CopyMarker {}
142142

143+
impl<T: Copy> CopyMarker for T {}
144+
143145
impl<T: FreezeMarker + CopyMarker> UnstableSmallSortFreezeTypeImpl for T {
144146
#[inline(always)]
145147
fn small_sort_threshold() -> usize {

0 commit comments

Comments
 (0)
Failed to load comments.