about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbeetrees <b@beetr.ee>2024-05-18 16:25:55 +0100
committerGitHub <noreply@github.com>2024-05-18 16:25:55 +0100
commit827711d0879dabfc9df4cb6a76d2925391e61423 (patch)
treef1ed455e6ff768e7fd780191755e2aa4af55fc51
parent685a80f7a0935c8e5016d8c9cd491937af155dd0 (diff)
downloadrust-827711d0879dabfc9df4cb6a76d2925391e61423.tar.gz
rust-827711d0879dabfc9df4cb6a76d2925391e61423.zip
Add `#[inline]` to float `Debug` fallback used by `cfg(no_fp_fmt_parse)`
-rw-r--r--library/core/src/fmt/nofloat.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/fmt/nofloat.rs b/library/core/src/fmt/nofloat.rs
index a36e7efcd95..6b07236f1da 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");
             }