Add #[inline] to float Debug fallback used by cfg(no_fp_fmt_parse)

This commit is contained in:
beetrees 2024-05-18 16:25:55 +01:00 committed by GitHub
parent 685a80f7a0
commit 827711d087
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,6 +4,7 @@ macro_rules! floating {
($ty:ident) => { ($ty:ident) => {
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
impl Debug for $ty { impl Debug for $ty {
#[inline]
fn fmt(&self, _fmt: &mut Formatter<'_>) -> Result { fn fmt(&self, _fmt: &mut Formatter<'_>) -> Result {
panic!("floating point support is turned off"); panic!("floating point support is turned off");
} }