about summary refs log tree commit diff
path: root/src/test/ui/const-generics
AgeCommit message (Collapse)AuthorLines
2020-04-30handle ByRef in relateBastian Kauschke-0/+53
2020-04-29Rollup merge of #71286 - Alexendoo:test-issue-69654, r=Dylan-DPCDylan DPC-0/+32
Add regression test for #69654 closes #69654 r? @eddyb
2020-04-28Rollup merge of #71340 - Valloric:more-check-pass, r=nikomatsakisDylan DPC-2/+2
Moving more build-pass tests to check-pass One or two tests became build-pass without the FIXME because they really needed build-pass (were failing without it). Helps with #62277 --- <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/rust-lang/rust/71340) <!-- Reviewable:end -->
2020-04-23Moving more build-pass tests to check-passVal Markovic-2/+2
One or two tests became build-pass without the FIXME because they really needed build-pass (were failing without it). Helps with #62277
2020-04-20Add error message for using type parameter as the type of a const parametervarkor-6/+10
2020-04-20Make the `structural_match` error diagnostic for const generics clearervarkor-6/+6
2020-04-18Add regression test for #69654Alex Macleod-0/+32
2020-04-14typeck: workaround WF hole in `to_const`.Eduard-Mihai Burtescu-8/+42
2020-04-13allow const generics in const fnBastian Kauschke-17/+4
2020-04-11rustc: Add a warning count upon completionRoccoDev-23/+107
2020-04-09Add regression test for #61522varkor-0/+40
2020-04-09Add regression test for #66596varkor-0/+24
2020-04-01Rollup merge of #70081 - lcnr:issue68387, r=varkorDylan DPC-3/+36
add `unused_braces` lint Add the lint `unused_braces` which is warn by default. `unused_parens` is also extended and now checks anon consts. closes #68387 r? @varkor
2020-03-31add tests for `unused_braces`Bastian Kauschke-0/+33
2020-03-31update testsBastian Kauschke-3/+3
2020-03-30infer arr len from patternBastian Kauschke-0/+56
2020-03-29Auto merge of #70009 - estebank:sugg-bound, r=Centrilbors-10/+8
Tweak `suggest_constraining_type_param` Some of the bound restriction structured suggestions were incorrect while others had subpar output. The only issue left is a suggestion for an already present bound when dealing with `const`s that should be handled independently. Fix #69983.
2020-03-29Tweak `suggest_constraining_type_param`Esteban Küber-10/+8
Some of the bound restriction structured suggestions were incorrect while others had subpar output.
2020-03-29add a build-pass test for issue 62220Dodo-0/+22
2020-03-29Rollup merge of #68692 - jyn514:vec-from-array, r=LukasKalbertodtMazdak Farrokhzad-7/+25
impl From<[T; N]> for Vec<T> Closes https://github.com/rust-lang/rust/issues/67963
2020-03-24Remove attribute `#[structural_match]` and any references to itVadim Petrochenkov-1/+1
2020-03-24Rollup merge of #70284 - lcnr:issue70273-what-the-heck-git, r=eddybMazdak Farrokhzad-0/+54
correctly handle const params in type_of extends #70223, retry of #70276 fixes #70273 r? @eddyb cc @varkor
2020-03-24Rollup merge of #70283 - CDirkx:regression-test-70155, r=oli-obkMazdak Farrokhzad-0/+30
Add regression test for #70155. With #70166 merged, `RangeInclusive` now derives `PartialEq` and `Eq`, implementing structural equality and as a side effect the range is now usable with const generics, closing #70155. As per [#70166 (comment)](https://github.com/rust-lang/rust/pull/70166#issuecomment-601872201) a test is added to avoid a change to the private fields or the equality implementation of the range from subtly reverting #70155.
2020-03-24Rollup merge of #69981 - oli-obk:const_blocks, r=eddybMazdak Farrokhzad-56/+41
Evaluate repeat expression lengths as late as possible Fixes #68567 r? @varkor
2020-03-23Merge tests.CDirkx-68/+30
Merge tests to a single test file.
2020-03-23Add const generics test for all range types.CDirkx-2/+58
In addition to the regression test of `RangeInclusive` for #70155, now all range types are checked for usability within const generics: - `RangeFrom` - `RangeFull` - `RangeToInclusive` - `RangeTo` - `Range` The test are moved from `test\ui\const-generics\issues\issue-70155` to `test\ui\const-generics\std\range` in anticipation of future similar tests for std types.
2020-03-23Evaluate repeat expression lengths as late as possibleOliver Scherer-56/+41
2020-03-23Reword unused variable warningAlex Tokarev-1/+1
2020-03-23Rollup merge of #70249 - lcnr:issue70125, r=eddybMazdak Farrokhzad-0/+51
handle ConstKind::Unresolved after monomorphizing fixes #70125 r? @bjorn3
2020-03-22correctly handle const params in type_ofBastian Kauschke-0/+54
2020-03-22Add regression test for #70155.CDirkx-0/+12
With #70166 merged, `RangeInclusive` now derives `PartialEq` and `Eq`, implementing structural equality and as a side effect the range is now usable with const generics, closing #70155. A test is added to avoid a change to the private fields or the equality implementation of the range from subtly reverting #70155.
2020-03-22Rollup merge of #70223 - lcnr:issue70167, r=eddybDylan DPC-0/+38
fix type of const params in associated types. fixes #66906 fixes #70167 r? @eddyb
2020-03-22rename testsBastian Kauschke-2/+2
2020-03-22handle unevaluated consts after monomophizeBastian Kauschke-0/+51
2020-03-21fix type of const params in associated types.Bastian Kauschke-0/+38
2020-03-21Rollup merge of #70032 - lcnr:issue69970, r=varkorDylan DPC-0/+25
put type params in front of const params in generics_of fixes #69970 r? @varkor
2020-03-19sort generic param order in generics_ofBastian Kauschke-0/+25
2020-03-16Auto merge of #67133 - oli-obk:it_must_be_a_sign, r=eddybbors-15/+15
Deduplicate pretty printing of constants r? @eddyb for the pretty printing logic cc @RalfJung
2020-03-13Add test for issue-67739Yuki Okushi-0/+26
2020-03-13Add test for issue-62504Yuki Okushi-0/+33
2020-03-12Remove fn special casing in const printingOliver Scherer-1/+1
2020-03-11Don't print literal type suffixes if `print_ty` is falseOliver Scherer-1/+1
2020-03-11Print function pointer type for function pointer const genericsOliver Scherer-6/+6
2020-03-11Reduce special casing in the const pretty printerOliver Scherer-3/+3
2020-03-11Don't print leading zeros on hex dumps constantsOliver Scherer-11/+8
2020-03-11Deduplicate and clean up pretty printing logicOliver Scherer-5/+8
2020-03-10bless UI testsJoshua Nelson-8/+17
2020-03-10add ui-testsJoshua Nelson-0/+9
2020-03-10fix #62456YI-0/+25
2020-03-02Remove chalk integrationCAD97-18/+0