mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
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) => {
|
||||
#[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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user