Rollup merge of #125252 - beetrees:patch-1, r=joboet

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

Fixes #125229.
This commit is contained in:
Michael Goulet 2024-05-19 11:04:08 -04:00 committed by GitHub
commit edace328b8
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");
} }