about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-05-19 11:04:08 -0400
committerGitHub <noreply@github.com>2024-05-19 11:04:08 -0400
commitedace328b88d6c9865137a85152f79464523984a (patch)
tree36bf416bf09dabb3306df1fa02a5bc0cf44abce4
parente940ca7d4fd4ddb027592ed6c1ef00d20037bb58 (diff)
parent827711d0879dabfc9df4cb6a76d2925391e61423 (diff)
downloadrust-edace328b88d6c9865137a85152f79464523984a.tar.gz
rust-edace328b88d6c9865137a85152f79464523984a.zip
Rollup merge of #125252 - beetrees:patch-1, r=joboet
Add `#[inline]` to float `Debug` fallback used by `cfg(no_fp_fmt_parse)`

Fixes #125229.
-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");
             }