Skip to content

NAlgebra v0.31.2 compilation fails #1166

@Agvantibo

Description

@Agvantibo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions