mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Add #[inline]
to float Debug
fallback used by cfg(no_fp_fmt_parse)
This commit is contained in:
parent
685a80f7a0
commit
827711d087
@ -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