mirror of
https://github.com/rust-lang/rust
synced 2024-10-04 15:50:51 +00:00
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.
This commit is contained in:
parent
732616998c
commit
b7deff3a0d
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue