blob: 29aaee75d22bca6148e4316e7584e0e7e4211668 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
use crate::fmt::{Debug, Formatter, Result};
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 fmt support is turned off");
}
}
)*
};
}
floating! { f16 f32 f64 f128 }
|