Skip to content

Commit 01bb41c

Browse files
authored
Merge pull request #662 from joboet/trivial-clone
do not specialise on `Copy`
2 parents 6620d02 + 41e6a49 commit 01bb41c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
core_intrinsics,
1818
dropck_eyepatch,
1919
min_specialization,
20+
trivial_clone,
2021
extend_one,
2122
allocator_api,
2223
slice_ptr_get,

src/raw/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3330,7 +3330,7 @@ impl<T: Clone, A: Allocator + Clone> RawTableClone for RawTable<T, A> {
33303330
}
33313331
}
33323332
#[cfg(feature = "nightly")]
3333-
impl<T: Copy, A: Allocator + Clone> RawTableClone for RawTable<T, A> {
3333+
impl<T: core::clone::TrivialClone, A: Allocator + Clone> RawTableClone for RawTable<T, A> {
33343334
#[cfg_attr(feature = "inline-more", inline)]
33353335
unsafe fn clone_from_spec(&mut self, source: &Self) {
33363336
source

0 commit comments

Comments
 (0)