g3 icon indicating copy to clipboard operation
g3 copied to clipboard

Build errors on macos - unresolved simd imports

Open coolbluewater opened this issue 9 months ago • 3 comments

Hi, running the examples on macOS (Metal M1) produces a bunch of errors starting with:

cargo run --example ball --release +nightly

error[E0432]: unresolved import `std::simd::SimdFloat`
 --> src/point.rs:1:80
  |
1 | use std::{fmt::{Display, Formatter, Result},simd::{f32x4,mask32x4,simd_swizzle,SimdFloat},mem::transmute,ops::{Add,AddAssign,Sub,SubAssign,Mul,MulAssign,...
  |                                                                                ^^^^^^^^^
  |                                                                                |
  |                                                                                no `SimdFloat` in `simd`
  |                                                                                help: a similar name exists in the module: `StdFloat`
  |
  = help: consider importing one of these items instead:
          core::simd::prelude::SimdFloat
          std::simd::prelude::SimdFloat

Any idea what's causing this?

coolbluewater avatar May 07 '24 19:05 coolbluewater