-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Make Default
const and add some const Default
impls
#134628
base: master
Are you sure you want to change the base?
Conversation
r? @wesleywiser rustbot has assigned @wesleywiser. Use |
Made this for some experiments with default field values, might as well put it somewhere visible as it seems like an obvious next step for the const traits effort. |
Please make sure this is assigned to someone on @rust-lang/project-const-traits if you take this out of draft. |
This comment has been minimized.
This comment has been minimized.
f36f4d5
to
00b0c75
Compare
00b0c75
to
d7cfdf5
Compare
☔ The latest upstream changes (presumably #134716) made this pull request unmergeable. Please resolve the merge conflicts. |
Full list of `impl const Default` types: - () - bool - char - std::ascii::Char - usize - u8 - u16 - u32 - u64 - u128 - i8 - i16 - i32 - i64 - i128 - f16 - f32 - f64 - f128 - std::marker::PhantomData<T> - Option<T> - std::iter::Empty<T> - std::ptr::Alignment - &[T] - &mut [T] - &str - &mut str - String - Vec<T>
d7cfdf5
to
4f6558b
Compare
r? @oli-obk Let me know what would be needed to make this merge-ready. |
I'd like to block this on #133999. |
Full list of
impl const Default
types: