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

cargo build --release --features metal -> error: could not compile mistralrs-core (lib) due to 3 previous errors #1177

Closed
ChristianWeyer opened this issue Mar 6, 2025 · 2 comments
Labels
bug Something isn't working resolved

Comments

@ChristianWeyer
Copy link

Describe the bug

cargo build --release --features metal

...
Compiling utoipa v4.2.3
error[E0658]: use of unstable library feature 'is_none_or'
   --> mistralrs-core/src/pipeline/amoe.rs:530:18
    |
530 |                 .is_none_or(|e| e.to_string_lossy() != *"csv")
    |                  ^^^^^^^^^^
    |
    = note: see issue #126383 <https://github.com/rust-lang/rust/issues/126383> for more information

error[E0658]: use of unstable library feature 'is_none_or'
   --> mistralrs-core/src/pipeline/isq.rs:512:43
    |
512 |                 if serialized.extension().is_none_or(|ext| ext != "uqff") {
    |                                           ^^^^^^^^^^
    |
    = note: see issue #126383 <https://github.com/rust-lang/rust/issues/126383> for more information

error[E0658]: use of unstable library feature 'is_none_or'
   --> mistralrs-core/src/sampler.rs:231:42
    |
231 |         let temperature = if temperature.is_none_or(|v| v < 1e-7) {
    |                                          ^^^^^^^^^^
    |
    = note: see issue #126383 <https://github.com/rust-lang/rust/issues/126383> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `mistralrs-core` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...

Latest commit or version

I am using commit b73e2e9.

@ChristianWeyer ChristianWeyer added the bug Something isn't working label Mar 6, 2025
@EricLBuehler
Copy link
Owner

Hi @ChristianWeyer! Can you please run rustup update?

@ChristianWeyer
Copy link
Author

Yeah, I fixed it the other day by updating my Rust version. Thanks! .-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved
Projects
None yet
Development

No branches or pull requests

2 participants