async-executor icon indicating copy to clipboard operation
async-executor copied to clipboard

Old slab version in dependencies breaks build

Open K0bin opened this issue 1 year ago • 0 comments

async-executor has a dependency on a really old version of slab.

slab = "0.4.4"

The problem is that this version no longer compiles with any remotely recent version of Rust:

error[E0015]: cannot call non-const fn `Slab::<Waker>::new` in constant functions
   --> /home/robin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.13.1/src/lib.rs:693:32
    |
693 |             active: Mutex::new(Slab::new()),
    |                                ^^^^^^^^^^^
    |
    = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants

This was fixed back in 2022 and shipped with slab 0.4.7.

K0bin avatar Oct 03 '24 20:10 K0bin