Skip to content

Commit 8b7240e

Browse files
committed
[AVR][HACK][NO UPSTREAM] Disable debug printing of function pointers
Workaround for #143.
1 parent f8add73 commit 8b7240e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2624,14 +2624,14 @@ macro_rules! fnptr_impls_safety_abi {
26242624
#[stable(feature = "fnptr_impls", since = "1.4.0")]
26252625
impl<Ret, $($Arg),*> fmt::Pointer for $FnTy {
26262626
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
2627-
fmt::Pointer::fmt(&(*self as *const ()), f)
2627+
"disabled due to avr-rust/rust#143".fmt(f)
26282628
}
26292629
}
26302630

26312631
#[stable(feature = "fnptr_impls", since = "1.4.0")]
26322632
impl<Ret, $($Arg),*> fmt::Debug for $FnTy {
26332633
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
2634-
fmt::Pointer::fmt(&(*self as *const ()), f)
2634+
"disabled due to avr-rust/rust#143".fmt(f)
26352635
}
26362636
}
26372637
}

0 commit comments

Comments
 (0)