Skip to content

Commit b70a1ec

Browse files
committed
Add missing impl Copy for *mut T
1 parent afb14f7 commit b70a1ec

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

tests/run/array.rs

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ impl Copy for i32 {}
3131
impl Copy for u8 {}
3232
impl Copy for i8 {}
3333
impl Copy for i16 {}
34+
impl<T: ?Sized> Copy for *mut T {}
3435

3536
#[lang = "receiver"]
3637
trait Receiver {

tests/run/closure.rs

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ impl Copy for i32 {}
3333
impl Copy for u32 {}
3434
impl Copy for u8 {}
3535
impl Copy for i8 {}
36+
impl<T: ?Sized> Copy for *mut T {}
3637

3738
#[lang = "receiver"]
3839
trait Receiver {

tests/run/condition.rs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ impl Copy for i16 {}
3434
impl Copy for char {}
3535
impl Copy for i8 {}
3636
impl Copy for u8 {}
37+
impl<T: ?Sized> Copy for *mut T {}
3738

3839
#[lang = "receiver"]
3940
trait Receiver {

tests/run/fun_ptr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ impl Copy for i32 {}
2828
impl Copy for u8 {}
2929
impl Copy for i8 {}
3030
impl Copy for i16 {}
31+
impl<T: ?Sized> Copy for *mut T {}
3132

3233
#[lang = "receiver"]
3334
trait Receiver {

tests/run/ptr_cast.rs

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ impl Copy for i32 {}
2828
impl Copy for u8 {}
2929
impl Copy for i8 {}
3030
impl Copy for i16 {}
31+
impl<T: ?Sized> Copy for *mut T {}
3132

3233
#[lang = "receiver"]
3334
trait Receiver {

tests/run/slice.rs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ impl Copy for isize {}
2626
impl Copy for usize {}
2727
impl Copy for i32 {}
2828
impl Copy for u32 {}
29+
impl<T: ?Sized> Copy for *mut T {}
2930

3031
#[lang = "receiver"]
3132
trait Receiver {

tests/run/static.rs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ trait Copy {
3434
}
3535

3636
impl Copy for isize {}
37+
impl<T: ?Sized> Copy for *mut T {}
3738

3839
#[lang = "receiver"]
3940
trait Receiver {

0 commit comments

Comments
 (0)