Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit c375b6e

Browse files
committed
fixup
1 parent c90d3e6 commit c375b6e

File tree

2 files changed

+4
-4
lines changed
  • crates/compiler-builtins-smoke-test/src
  • src/math/generic

2 files changed

+4
-4
lines changed

crates/compiler-builtins-smoke-test/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#![no_std]
88

99
#[allow(dead_code)]
10+
#[allow(unused_imports)]
1011
#[allow(clippy::all)] // We don't get `libm`'s list of `allow`s, so just ignore Clippy.
1112
#[path = "../../../src/math/mod.rs"]
1213
pub mod libm;

src/math/generic/fma.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ pub fn fma<F: Float>(x: F, y: F, z: F) -> F {
1010
todo!()
1111
}
1212

13-
pub fn fma_big<F: Float, B: Float>(x: F, y: F, z: F) -> F
13+
pub fn fma_big<F, B>(x: F, y: F, z: F) -> F
1414
where
15-
F: CastInto<B>,
16-
B: CastInto<F>,
15+
F: Float + CastInto<B>,
16+
B: Float + CastInto<F> + CastFrom<F>,
1717
B::Int: CastInto<i32>,
1818
i32: CastFrom<i32>,
19-
B: CastFrom<F>,
2019
{
2120
let one = IntTy::<B>::ONE;
2221

0 commit comments

Comments
 (0)