Skip to content

Commit

Permalink
Add #[inline] to float Debug fallback used by cfg(no_fp_fmt_parse)
Browse files Browse the repository at this point in the history
  • Loading branch information
beetrees authored May 18, 2024
1 parent 685a80f commit 827711d
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 827711d

Please sign in to comment.