diff options
| author | bors <bors@rust-lang.org> | 2022-09-25 14:28:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-25 14:28:04 +0000 |
| commit | 17e8752acafe7240f38bcb114586ff0568224cad (patch) | |
| tree | 66e818d3b7bd502f2f14853901e73e6a6823e287 /library/core/src/array | |
| parent | 4652f5eb25b76c24fc40b7267d87a07d5876901f (diff) | |
| parent | c50303ca1ff0266c08678047e7f05e88a2cadac4 (diff) | |
| download | rust-17e8752acafe7240f38bcb114586ff0568224cad.tar.gz rust-17e8752acafe7240f38bcb114586ff0568224cad.zip | |
Auto merge of #102265 - fee1-dead-contrib:rollup-a7fccbg, r=fee1-dead
Rollup of 8 pull requests Successful merges: - #98111 (Clarify `[T]::select_nth_unstable*` return values) - #101431 (Look at move place's type when suggesting mutable reborrow) - #101800 (Constify slice.split_at_mut(_unchecked)) - #101997 (Remove support for legacy PM) - #102194 (Note the type when unable to drop values in compile time) - #102200 (Constify Default impl's for Arrays and Tuples.) - #102245 (Constify cmp_min_max_by.) - #102259 (Type-annotate and simplify documentation of Option::unwrap_or_default) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'library/core/src/array')
| -rw-r--r-- | library/core/src/array/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs index 165b9d24d93..36e89a95fd2 100644 --- a/library/core/src/array/mod.rs +++ b/library/core/src/array/mod.rs @@ -434,7 +434,8 @@ impl<T: Copy> SpecArrayClone for T { macro_rules! array_impl_default { {$n:expr, $t:ident $($ts:ident)*} => { #[stable(since = "1.4.0", feature = "array_default")] - impl<T> Default for [T; $n] where T: Default { + #[rustc_const_unstable(feature = "const_default_impls", issue = "87864")] + impl<T> const Default for [T; $n] where T: ~const Default { fn default() -> [T; $n] { [$t::default(), $($ts::default()),*] } |
