Skip to content

Commit

Permalink
Rollup merge of rust-lang#30839 - tomaka:debug-phantomdata, r=nikomat…
Browse files Browse the repository at this point in the history
…sakis

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.
  • Loading branch information
Manishearth committed Jan 14, 2016
2 parents 837a8de + 59df1d8 commit 2484884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ impl Debug for () {
}
}
#[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 {
f.pad("PhantomData")
}
Expand Down

0 comments on commit 2484884

Please sign in to comment.