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

Unable to compile with latest nightly #16

Closed
Shatur opened this issue Sep 30, 2021 · 0 comments · Fixed by #17
Closed

Unable to compile with latest nightly #16

Shatur opened this issue Sep 30, 2021 · 0 comments · Fixed by #17

Comments

@Shatur
Copy link
Contributor

Shatur commented Sep 30, 2021

I have the following error (I removed duplicated errors to reduce log):

error[E0557]: feature has been removed
 --> /home/gena/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/crystalorb-0.2.1/src/lib.rs:4:12
  |
4 | #![feature(const_generics)]
  |            ^^^^^^^^^^^^^^ feature has been removed
  |
  = note: removed in favor of `#![feature(adt_const_params)]` and `#![feature(generic_const_exprs)]`

   Compiling time v0.2.27
error: `TerminationCondition` is forbidden as the type of a const generic parameter
  --> /home/gena/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/crystalorb-0.2.1/src/fixed_timestepper.rs:92:56
   |
92 | impl<T: FixedTimestepper, const TERMINATION_CONDITION: TerminationCondition>
   |                                                        ^^^^^^^^^^^^^^^^^^^^
   |
   = note: the only supported types are integers, `bool` and `char`
   = help: more complex types are supported with `#![feature(adt_const_params)]`

For more information about this error, try `rustc --explain E0557`.
error: could not compile `crystalorb` due to 10 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed

I use rustc 1.57.0-nightly (11491938f 2021-09-29)

ErnWong added a commit that referenced this issue Oct 1, 2021
Fix compilation on the latest nightly
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

Successfully merging a pull request may close this issue.

1 participant