libcore: add Debug implementations to most missing types

This commit is contained in:
Sean McArthur
2016-03-04 18:49:43 -08:00
parent 235d77457d
commit e0945937c4
17 changed files with 319 additions and 34 deletions

View File

@@ -59,6 +59,7 @@ use mem;
/// println!("data pointer = {:?}, length = {}", repr.data, repr.len);
/// ```
#[repr(C)]
#[allow(missing_debug_implementations)]
pub struct Slice<T> {
pub data: *const T,
pub len: usize,
@@ -143,6 +144,7 @@ impl<T> Clone for Slice<T> {
/// ```
#[repr(C)]
#[derive(Copy, Clone)]
#[allow(missing_debug_implementations)]
pub struct TraitObject {
pub data: *mut (),
pub vtable: *mut (),