Skip to content

Commit edace32

Browse files
authoredMay 19, 2024
Rollup merge of #125252 - beetrees:patch-1, r=joboet
Add `#[inline]` to float `Debug` fallback used by `cfg(no_fp_fmt_parse)` Fixes #125229.
2 parents e940ca7 + 827711d commit edace32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎library/core/src/fmt/nofloat.rs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ macro_rules! floating {
44
($ty:ident) => {
55
#[stable(feature = "rust1", since = "1.0.0")]
66
impl Debug for $ty {
7+
#[inline]
78
fn fmt(&self, _fmt: &mut Formatter<'_>) -> Result {
89
panic!("floating point support is turned off");
910
}

0 commit comments

Comments
 (0)