-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Tracking Issue for const_default_impls
#87864
Comments
`impl const Default for Box<[T]>` and `Box<str>` The unstable `const_default_impls` (rust-lang#87864) already include empty `Vec<T>` and `String`. Now we extend that concept to `Box<[T]>` and `Box<str>` as well. This obviates a hack in `rustc_ast`'s `P::<[T]>::new`.
What's the status of this issue? |
It's dependent on #67792. |
I stumbled across this pr, as I was trying to implement my own What am I doing wrong here? |
See #110395. |
Based on I'll close the issue since this isn't currently tracking any API requiring Libs-API team attention, but the list of impls at the top of this issue may be useful if const impls ever get reinstated, and we can reopen the issue (or create a new one) at that point. |
Feature gate:
#![feature(const_default_impls)]
This is a tracking issue for
const
Default
impl
s in the standard library.Public API
Steps / History
Default
#86808,impl const Default for Box<[T]>
andBox<str>
#95947Unresolved Questions
The text was updated successfully, but these errors were encountered: