diff options
| author | beetrees <b@beetr.ee> | 2024-05-18 16:25:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-18 16:25:55 +0100 |
| commit | 827711d0879dabfc9df4cb6a76d2925391e61423 (patch) | |
| tree | f1ed455e6ff768e7fd780191755e2aa4af55fc51 | |
| parent | 685a80f7a0935c8e5016d8c9cd491937af155dd0 (diff) | |
| download | rust-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.rs | 1 |
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"); } |
