Skip to content

Commit

Permalink
Add missing impl Copy for *mut T
Browse files Browse the repository at this point in the history
  • Loading branch information
antoyo committed Aug 13, 2024
1 parent afb14f7 commit b70a1ec
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/run/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ impl Copy for i32 {}
impl Copy for u8 {}
impl Copy for i8 {}
impl Copy for i16 {}
impl<T: ?Sized> Copy for *mut T {}

#[lang = "receiver"]
trait Receiver {
Expand Down
1 change: 1 addition & 0 deletions tests/run/closure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ impl Copy for i32 {}
impl Copy for u32 {}
impl Copy for u8 {}
impl Copy for i8 {}
impl<T: ?Sized> Copy for *mut T {}

#[lang = "receiver"]
trait Receiver {
Expand Down
1 change: 1 addition & 0 deletions tests/run/condition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ impl Copy for i16 {}
impl Copy for char {}
impl Copy for i8 {}
impl Copy for u8 {}
impl<T: ?Sized> Copy for *mut T {}

#[lang = "receiver"]
trait Receiver {
Expand Down
1 change: 1 addition & 0 deletions tests/run/fun_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ impl Copy for i32 {}
impl Copy for u8 {}
impl Copy for i8 {}
impl Copy for i16 {}
impl<T: ?Sized> Copy for *mut T {}

#[lang = "receiver"]
trait Receiver {
Expand Down
1 change: 1 addition & 0 deletions tests/run/ptr_cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ impl Copy for i32 {}
impl Copy for u8 {}
impl Copy for i8 {}
impl Copy for i16 {}
impl<T: ?Sized> Copy for *mut T {}

#[lang = "receiver"]
trait Receiver {
Expand Down
1 change: 1 addition & 0 deletions tests/run/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ impl Copy for isize {}
impl Copy for usize {}
impl Copy for i32 {}
impl Copy for u32 {}
impl<T: ?Sized> Copy for *mut T {}

#[lang = "receiver"]
trait Receiver {
Expand Down
1 change: 1 addition & 0 deletions tests/run/static.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ trait Copy {
}

impl Copy for isize {}
impl<T: ?Sized> Copy for *mut T {}

#[lang = "receiver"]
trait Receiver {
Expand Down

0 comments on commit b70a1ec

Please sign in to comment.