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:
commit
edace328b8
@ -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");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user