Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 827711d

Browse files
authoredMay 18, 2024
Add #[inline] to float Debug fallback used by cfg(no_fp_fmt_parse)
1 parent 685a80f commit 827711d

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)
Failed to load comments.