Skip to content

Commit

Permalink
Rollup merge of #125252 - beetrees:patch-1, r=joboet
Browse files Browse the repository at this point in the history
Add `#[inline]` to float `Debug` fallback used by `cfg(no_fp_fmt_parse)`

Fixes #125229.
  • Loading branch information
compiler-errors committed May 19, 2024
2 parents e940ca7 + 827711d commit edace32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/fmt/nofloat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit edace32

Please sign in to comment.