Skip to content

Build fails when using v0.7.0 #81

@L3g73

Description

@L3g73

I've tried updating my malachite dependency to v0.7.0 but now I can no longer build:

error: no rules expected keyword `const`
    --> [...]\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\malachite-nz-0.7.0\src\natural\arithmetic\mul\fft.rs:4720:31
     |
4720 |                   assert_eq!(k, const { $n - 1 });
     |                                 ^^^^^ no rules expected this token in macro call
...
5664 | / process_crt!(
5665 | |     process_crt_7_6_5,
5666 | |     7,
5667 | |     6,
...    |
5674 | |     multi_sub_6
5675 | | );
     | |_- in this macro invocation
     |
note: while trying to match meta-variable `$right:expr`
    --> [...]\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\macros\mod.rs:43:18
     |
43   |     ($left:expr, $right:expr $(,)?) => {
     |                  ^^^^^^^^^^^
     = note: this error originates in the macro `big_mul` which comes from the expansion of the macro `process_crt` (in Nightly builds, run with -Z macro-backtrace for more info)
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions