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

Remove usage of lazy_static! #2611

Open
tomaka opened this issue Aug 11, 2022 · 1 comment
Open

Remove usage of lazy_static! #2611

tomaka opened this issue Aug 11, 2022 · 1 comment
Labels
blocked Can't work on this issue because it is blocked on something out of our control priority-low

Comments

@tomaka
Copy link
Contributor

tomaka commented Aug 11, 2022

As of Rust 1.63, Mutex::new is now const. This means that we no longer need lazy_static in order to have a static variable containing a Mutex.

It is however not really possible yet to remove lazy_static because we're using some non-const functions such as BinaryHeap::new or BTreeMap::new.

@tomaka tomaka added priority-low blocked Can't work on this issue because it is blocked on something out of our control labels Aug 11, 2022
@tomaka
Copy link
Contributor Author

tomaka commented Oct 25, 2022

BTreeMap::new will be stable in an upcoming version: rust-lang/rust#102197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Can't work on this issue because it is blocked on something out of our control priority-low
Projects
None yet
Development

No branches or pull requests

1 participant