Skip to content

Commit

Permalink
[AVR][HACK][NO UPSTREAM] Disable debug printing of function pointers
Browse files Browse the repository at this point in the history
Workaround for #143.
  • Loading branch information
dylanmckay committed Jun 8, 2019
1 parent e309a26 commit 250fe58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/ptr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2631,14 +2631,14 @@ macro_rules! fnptr_impls_safety_abi {
#[stable(feature = "fnptr_impls", since = "1.4.0")]
impl<Ret, $($Arg),*> 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<Ret, $($Arg),*> 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)
}
}
}
Expand Down

0 comments on commit 250fe58

Please sign in to comment.