We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3174cb2 commit aed46cbCopy full SHA for aed46cb
crates/core_simd/Cargo.toml
@@ -28,4 +28,4 @@ features = ["alloc"]
28
path = "../test_helpers"
29
30
[dev-dependencies]
31
-std_float = { path = "../std_float/" }
+std_float = { path = "../std_float/", features = ["as_crate"] }
crates/core_simd/examples/nbody.rs
@@ -1,16 +1,12 @@
1
#![feature(portable_simd)]
2
-
3
extern crate std_float;
4
5
/// Benchmarks game nbody code
6
/// Taken from the `packed_simd` crate
7
/// Run this benchmark with `cargo test --example nbody`
8
mod nbody {
9
- #[cfg(not(feature = "std"))]
10
- use core::simd::*;
11
- #[cfg(feature = "std")]
12
use core_simd::simd::*;
13
+ #[allow(unused)] // False positive?
14
use std_float::Float;
15
16
use std::f64::consts::PI;
0 commit comments