-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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. |
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: - () - 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>
3a03fb5
to
78db9d1
Compare
This comment has been minimized.
This comment has been minimized.
The lint should likely still trigger while the const Default impl is unstable.
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
☔ The latest upstream changes (presumably #137752) made this pull request unmergeable. Please resolve the merge conflicts. |
This was blocked on #133999 (comment) which is now closed. @fee1-dead are you still interested in working on a follow-up to #133999 or are there other plans? Or no plans for now? Just to get a clearer picture of the progress here :-) Thanks cc @oli-obk |
This is blocked on a T-lang decision on syntax of const traits |
Full list of
impl const Default
types: