rust/library/core
Trevor Gross 6b3feb49c6 Mark {f32,f64}::{next_up,next_down,midpoint} inline
Most float functions are marked `#[inline]` so any float symbols used by
these functions only need to be provided if the function itself is used.
RFL recently noticed that `next_up`, `next_down`, and `midpoint` for
`f32` and `f64` are not inline, which causes linker errors when building
with certain configurations [1].

Add the missing attributes so the symbols should no longer be required.

Cc: Gary Guo <gary@garyguo.net>
Reported-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/all/20240806150619.192882-1-ojeda@kernel.org/ [1]
2024-08-07 03:24:55 -05:00
..
benches Reformat use declarations. 2024-07-29 08:26:52 +10:00
src Mark {f32,f64}::{next_up,next_down,midpoint} inline 2024-08-07 03:24:55 -05:00
tests Rewrite binary search implementation 2024-07-30 17:07:56 +01:00
Cargo.toml Cleanup bootstrap check-cfg 2024-06-27 11:30:03 +02:00