rust-lang / futures-rs

Zero-cost asynchronous programming in Rust
https://rust-lang.github.io/futures-rs/
Apache License 2.0
5.43k stars 629 forks source link

Can we haz const new Mutex? #2898

Closed danii closed 1 week ago

danii commented 1 week ago

All code in futures_util::lock::Mutex::new is const compatible, and I don't see a reason why it shouldn't be marked as a const fn. Can we haz?

danii commented 1 week ago

Guess not. My bad.