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.
2 parents 224fa39 + f2d0366 commit f74bcfbCopy full SHA for f74bcfb
library/core/src/fmt/mod.rs
@@ -2471,8 +2471,8 @@ impl Display for char {
2471
#[stable(feature = "rust1", since = "1.0.0")]
2472
impl<T: ?Sized> Pointer for *const T {
2473
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
2474
- // Cast is needed here because `.addr()` requires `T: Sized`.
2475
- pointer_fmt_inner((*self as *const ()).addr(), f)
+ // Cast is needed here because `.expose_addr()` requires `T: Sized`.
+ pointer_fmt_inner((*self as *const ()).expose_addr(), f)
2476
}
2477
2478
0 commit comments