We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c3bc80 commit b1d6dadCopy full SHA for b1d6dad
library/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.addr(), f)
2483
}
2484
2485
0 commit comments