about summary refs log tree commit diff
path: root/src/test/ui/const-generics/array-impls
AgeCommit message (Collapse)AuthorLines
2020-12-29Stabilize by-value `[T; N]` iterator `core::array::IntoIter`Simon Sapin-2/+0
Tracking issue: https://github.com/rust-lang/rust/issues/65798 This is unblocked now that `min_const_generics` has been stabilized in https://github.com/rust-lang/rust/pull/79135. This PR does *not* include the corresponding `IntoIterator` impl, which is https://github.com/rust-lang/rust/pull/65819. Instead, an iterator can be constructed through the `new` method. `new` would become unnecessary when `IntoIterator` is implemented and might be deprecated then, although it will stay stable.
2020-07-05Fix copypaste in test into-iter-impls-length-33 (const generic 32 -> 33)Roman Proskuryakov-7/+7
2020-07-05Remove the usage of the LengthAtMost32 traitRoman Proskuryakov-512/+172
2020-06-26Show the values and computation that would overflow a const evaluation or ↵Oliver Scherer-14/+14
propagation
2020-05-20impl From<[T; N]> for Box<[T]>Ivan Tham-6/+25
Based on https://github.com/rust-lang/rust/pull/68692
2020-05-19Auto merge of #71447 - cuviper:unsized_cow, r=dtolnaybors-5/+5
impl From<Cow> for Box, Rc, and Arc These forward `Borrowed`/`Owned` values to existing `From` impls. - `Box<T>` is a fundamental type, so it would be a breaking change to add a blanket impl. Therefore, `From<Cow>` is only implemented for `[T]`, `str`, `CStr`, `OsStr`, and `Path`. - For `Rc<T>` and `Arc<T>`, `From<Cow>` is implemented for everything that implements `From` the borrowed and owned types separately.
2020-05-09display `ConstKind::Param`Bastian Kauschke-5/+5
2020-04-22Bless From<Cow> UI changesJosh Stone-5/+5
2020-03-10bless UI testsJoshua Nelson-8/+17
2020-03-10add ui-testsJoshua Nelson-0/+9
2020-03-01Fix use of `has_infer_types`Matthew Jasper-14/+14
* Add a new method `has_infer_types_or_consts` that's used instead most of the time, since there's generally no reason to only consider types. * Remove use of `has_closure_types`, because closures are no longer implicitly linked to the `InferCtxt`.
2020-02-17Do not emit note suggesting to implement trait to foreign typeLeSeulArtichaut-4/+0
Update tests Extend to other operations Refractor check in a separate function Fix more tests
2020-02-13Rollup merge of #67642 - Mark-Simulacrum:relax-bounds, r=AmanieuDylan DPC-15/+5
Relax bounds on HashMap/HashSet These APIs changed from the old bound listed to the new bound (possibly empty): K: Hash + Eq -> K * new * with_capacity K: Eq + Hash, S: BuildHasher -> K, S * with_hasher * with_capacity_and_hasher * hasher K: Eq + Hash + Debug -> K: Debug S: BuildHasher -> S HashMap as Debug K: Eq + Hash -> K S: BuildHasher + Default -> S: Default HashMap as Default Resolves #44777.
2020-02-06rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros.Eduard-Mihai Burtescu-0/+1
2020-01-16review commentsEsteban Küber-7/+7
2020-01-16When trait bounds are missing for return values, point at themEsteban Küber-0/+36
2019-12-26Relax bounds on HashSet to match hashbrownMark Rousskov-15/+5
No functional changes are made, and all APIs are moved to strictly less restrictive bounds. These APIs changed from the old bound listed to the new bound: T: Hash + Eq -> T * new * with_capacity T: Eq + Hash, S: BuildHasher -> T * with_hasher * with_capacity_and_hasher * hasher T: Eq + Hash + Debug -> T: Debug S: BuildHasher -> S <HashSet as Debug> T: Eq + Hash -> T S: BuildHasher + Default -> S: Default <HashSet as Default>
2019-12-07Rename tests and add short test descriptionJanusz Marcinkiewicz-5/+15
2019-10-24Add UI tests for `array::IntoIter` implsLukas Kalbertodt-0/+216
This it to make sure traits are implemented for arrays with length 32 and below, while they are not implemented for >= 33.
2019-09-19When possible point at argument causing item obligation failureEsteban Küber-2/+2
2019-08-05Add implementations for converting boxed slices into boxed arraysJake Goulding-0/+101
This mirrors the implementations of reference slices into arrays.
2019-07-28Add tests for Vec(Deque) array PartialEq impls.Mazdak Farrokhzad-0/+131
2019-07-07Use const generics for array impls, restricted to 0..=32Scott McMurray-0/+149
- uses a never-stable core::array::LengthAtMost32 to bound the impls - includes a custom error message to avoid mentioning LengthAtMost32 too often - doesn't use macros for the slice implementations to avoid #62433