From 827711d0879dabfc9df4cb6a76d2925391e61423 Mon Sep 17 00:00:00 2001 From: beetrees Date: Sat, 18 May 2024 16:25:55 +0100 Subject: [PATCH] Add `#[inline]` to float `Debug` fallback used by `cfg(no_fp_fmt_parse)` --- library/core/src/fmt/nofloat.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/fmt/nofloat.rs b/library/core/src/fmt/nofloat.rs index a36e7efcd95c7..6b07236f1da12 100644 --- a/library/core/src/fmt/nofloat.rs +++ b/library/core/src/fmt/nofloat.rs @@ -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"); }