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
Constification of BinaryHeap construction #112353
Comments
All the other collections already have const constructors (except for the ones for which it's hard, cc #112354). So I think it makes a lot of sense to make this const as well. There was an entire ACP for |
Constification of BinaryHeap constructor will be helpful when a static variable is of the BinaryHeap type. |
Please send a PR. |
I also met this issue and I am trying to address it with #117316 |
…tor, r=dtolnay Mark constructor of `BinaryHeap` as const fn rust-lang#112353
…tor, r=dtolnay Mark constructor of `BinaryHeap` as const fn rust-lang#112353
Rollup merge of rust-lang#117316 - Coekjan:const-binary-heap-constructor, r=dtolnay Mark constructor of `BinaryHeap` as const fn rust-lang#112353
The feature Due to the unstable feature ( |
Is there any reason this isn't const yet? This should only depend on vec's construction being const which it is.
The text was updated successfully, but these errors were encountered: