We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c38c60 commit bf9096fCopy full SHA for bf9096f
core/src/fmt/mod.rs
@@ -2478,8 +2478,7 @@ impl Display for char {
2478
#[stable(feature = "rust1", since = "1.0.0")]
2479
impl<T: ?Sized> Pointer for *const T {
2480
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
2481
- // Cast is needed here because `.expose_provenance()` requires `T: Sized`.
2482
- pointer_fmt_inner((*self as *const ()).expose_provenance(), f)
+ pointer_fmt_inner(self.expose_provenance(), f)
2483
}
2484
2485
0 commit comments