Stream: cranelift

Topic: Upgrading cranelift


view this post on Zulip edoardo (Aug 12 2024 at 10:04):

Hello all! I'm trying to update cranelift-* crates from 0.91.0 to 0.110.1. I get a compiler error straight from the crate:

error[E0599]: no method named `chunk_by` found for mutable reference `&'b mut [cranelift_codegen::ir::Value]` in the current scope
   --> [...]/cargo/registry/src/index.crates.io-6f17d22bba15001f/cranelift-frontend-0.110.1/src/frontend.rs:866:10
    |
866 |     live.chunk_by(|a, b| dfg.value_type(*a).bytes() == dfg.value_type(*b).bytes())
    |          ^^^^^^^^ help: there is a method with a similar name: `chunks`

Am I doing something obviously wrong?

view this post on Zulip Alex Crichton (Aug 12 2024 at 14:27):

I believe this means that your version of rust is too old, can you try updating?

view this post on Zulip edoardo (Aug 12 2024 at 15:22):

Thanks for the message. I'll try as soon as I can. Other than this, is there an upgrade guide, by any chance?

view this post on Zulip Alex Crichton (Aug 12 2024 at 15:48):

Not that I know of, no


Last updated: Dec 23 2024 at 13:07 UTC