1
Fork 0

Fix the Debug impl of PhantomData requiring Sized on T

This commit is contained in:
Pierre Krieger 2016-01-12 11:23:18 +01:00
parent d6cb2791ce
commit 59df1d80f2

View file

@ -1569,7 +1569,7 @@ impl Debug for () {
} }
} }
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
impl<T> Debug for PhantomData<T> { impl<T: ?Sized> Debug for PhantomData<T> {
fn fmt(&self, f: &mut Formatter) -> Result { fn fmt(&self, f: &mut Formatter) -> Result {
f.pad("PhantomData") f.pad("PhantomData")
} }