Skip to content

Commit 59df1d8

Browse files
committed
Fix the Debug impl of PhantomData requiring Sized on T
1 parent d6cb279 commit 59df1d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/fmt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,7 @@ impl Debug for () {
15691569
}
15701570
}
15711571
#[stable(feature = "rust1", since = "1.0.0")]
1572-
impl<T> Debug for PhantomData<T> {
1572+
impl<T: ?Sized> Debug for PhantomData<T> {
15731573
fn fmt(&self, f: &mut Formatter) -> Result {
15741574
f.pad("PhantomData")
15751575
}

0 commit comments

Comments
 (0)