Add #[inline]
to float Debug
fallback used by cfg(no_fp_fmt_parse)
This commit is contained in:
parent
685a80f7a0
commit
827711d087
1 changed files with 1 additions and 0 deletions
|
@ -4,6 +4,7 @@ macro_rules! floating {
|
|||
($ty:ident) => {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl Debug for $ty {
|
||||
#[inline]
|
||||
fn fmt(&self, _fmt: &mut Formatter<'_>) -> Result {
|
||||
panic!("floating point support is turned off");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue