Fallout in public-facing and semi-public-facing libs
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
//!
|
||||
//! Their definition should always match the ABI defined in `rustc::back::abi`.
|
||||
|
||||
use marker::Copy;
|
||||
use mem;
|
||||
|
||||
/// The representation of a slice like `&[T]`.
|
||||
@@ -63,6 +62,9 @@ pub struct Slice<T> {
|
||||
}
|
||||
|
||||
impl<T> Copy for Slice<T> {}
|
||||
impl<T> Clone for Slice<T> {
|
||||
fn clone(&self) -> Slice<T> { *self }
|
||||
}
|
||||
|
||||
/// The representation of a trait object like `&SomeTrait`.
|
||||
///
|
||||
@@ -136,7 +138,7 @@ impl<T> Copy for Slice<T> {}
|
||||
/// assert_eq!(synthesized.bar(), 457);
|
||||
/// ```
|
||||
#[repr(C)]
|
||||
#[derive(Copy)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct TraitObject {
|
||||
pub data: *mut (),
|
||||
pub vtable: *mut (),
|
||||
|
||||
Reference in New Issue
Block a user