diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 4a7a16b2c94e0..e002052bf27bf 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -2624,14 +2624,14 @@ macro_rules! fnptr_impls_safety_abi { #[stable(feature = "fnptr_impls", since = "1.4.0")] impl fmt::Pointer for $FnTy { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - fmt::Pointer::fmt(&(*self as *const ()), f) + "disabled due to avr-rust/rust#143".fmt(f) } } #[stable(feature = "fnptr_impls", since = "1.4.0")] impl fmt::Debug for $FnTy { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - fmt::Pointer::fmt(&(*self as *const ()), f) + "disabled due to avr-rust/rust#143".fmt(f) } } }