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

NAlgebra v0.31.2 compilation fails #1166

Closed
Agvantibo opened this issue Oct 23, 2022 · 1 comment
Closed

NAlgebra v0.31.2 compilation fails #1166

Agvantibo opened this issue Oct 23, 2022 · 1 comment

Comments

@Agvantibo
Copy link

Agvantibo commented Oct 23, 2022

Screenshot
I've attempted to install Fyrox accroding to the Book, so during compilation of the editor (cargo run --package editor --release), nalgebra was downloaded but failed to compile.
The output of the aforementioned command is:

agvantibo@archlinux ~/C/TheRoom (main)> cargo run --package editor --release
   Compiling nalgebra v0.31.2
error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
   --> /home/agvantibo/.cargo/registry/src/github.com-1ecc6299db9ec823/nalgebra-0.31.2/src/geometry/point_construction.rs:194:6
    |
194 | impl<T: Scalar> Point1<T> {
    |      ^
...
206 |     pub const fn new(x: T) -> Self {
    |     ------------------------------ function declared as const here
    |
    = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information

error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
   --> /home/agvantibo/.cargo/registry/src/github.com-1ecc6299db9ec823/nalgebra-0.31.2/src/geometry/point_construction.rs:231:14
    |
231 |           impl<T: Scalar> $Point<T> {
    |                ^
...
238 |               pub const fn new($($args: T),*) -> Self {
    |               --------------------------------------- function declared as const here
...
257 | / componentwise_constructors_impl!(
258 | |     "# use nalgebra::Point2;\nlet p = Point2::new(1.0, 2.0);\nassert!(p.x == 1.0 && p.y == 2.0);";
259 | |     Point2, Vector2, x:0, y:1;
260 | |     "# use nalgebra::Point3;\nlet p = Point3::new(1.0, 2.0, 3.0);\nassert!(p.x == 1.0 && p.y == 2.0 && p.z == 3.0);";
...   |
267 | |     Point6, Vector6, x:0, y:1, z:2, w:3, a:4, b:5;
268 | | );
    | |_- in this macro invocation
    |
    = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information
    = note: this error originates in the macro `componentwise_constructors_impl` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0658`.
error: could not compile `nalgebra` due to 2 previous errors
agvantibo@archlinux ~/C/TheRoom (main) [101]> lsb_release -a
LSB Version:	n/a
Distributor ID:	Arch
Description:	Arch Linux
Release:	rolling
Codename:	n/a
@sebcrozet
Copy link
Member

sebcrozet commented Oct 26, 2022

Hi! You probably just need to update your compiler.
Please reopen if you are still having this problem after an update.

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.

2 participants