core/fmt/nofloat.rs
1use crate::fmt::{Debug, Formatter, Result};
2
3macro_rules! floating {
4 ($($ty:ident)*) => {
5 $(
6 #[stable(feature = "rust1", since = "1.0.0")]
7 impl Debug for $ty {
8 #[inline]
9 fn fmt(&self, _fmt: &mut Formatter<'_>) -> Result {
10 panic!("floating point fmt support is turned off");
11 }
12 }
13 )*
14 };
15}
16
17floating! { f16 f32 f64 f128 }