Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hard to diagnose compile errors in certain scenarios #19

Open
Canleskis opened this issue Oct 8, 2024 · 0 comments
Open

Hard to diagnose compile errors in certain scenarios #19

Canleskis opened this issue Oct 8, 2024 · 0 comments

Comments

@Canleskis
Copy link
Owner

When using the various traits to compute an interaction with an unsatisfied bound, the compilation errors shown are sometimes hard to diagnose or simply wrong. For example, missing the glam feature when compiling the ring-formation example shows the following error:

error[E0275]: overflow evaluating the requirement `_: Sized`
  --> examples\ring-formation\src\nbody.rs:26:10
   |
26 |         .brute_force_simd::<8>(Acceleration::checked())
   |          ^^^^^^^^^^^^^^^^
   |
   = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`ring_formation`)
   = note: required for `GravitationalField<bevy::prelude::Vec3, _>` to implement `ToSimd<8>`
   = note: required for `BruteForceSimd<8, particular::gravity::newtonian::Acceleration<true>>` to implement `particular::Interaction<&[(bevy::prelude::Vec3, f32)]>`

For more information about this error, try `rustc --explain E0275`.
error: could not compile `ring-formation` (bin "ring-formation") due to 1 previous error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant