Skip to content

Commit 2484884

Browse files
committed
Rollup merge of rust-lang#30839 - tomaka:debug-phantomdata, r=nikomatsakis
All the trait implementations of `PhantomData` use `impl<T: ?Sized>` except for `Debug` https://doc.rust-lang.org/nightly/std/marker/struct.PhantomData.html#implementations This PR fixes this.
2 parents 837a8de + 59df1d8 commit 2484884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/fmt/mod.rs

Lines changed: 1 addition & 1 deletion
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)