]> git.lizzy.rs Git - rust.git/blob - library/core/src/fmt/nofloat.rs
Auto merge of #105651 - tgross35:once-cell-inline, r=m-ou-se
[rust.git] / library / core / src / fmt / nofloat.rs
1 use crate::fmt::{Debug, Formatter, Result};
2
3 macro_rules! floating {
4     ($ty:ident) => {
5         #[stable(feature = "rust1", since = "1.0.0")]
6         impl Debug for $ty {
7             fn fmt(&self, _fmt: &mut Formatter<'_>) -> Result {
8                 panic!("floating point support is turned off");
9             }
10         }
11     };
12 }
13
14 floating! { f32 }
15 floating! { f64 }