summary refs log tree commit diff
path: root/src/test/ui/const-generics/issues
AgeCommit message (Collapse)AuthorLines
2020-06-28Add test for issue-72352Yuki Okushi-0/+29
2020-06-28Add test for issue-71611Yuki Okushi-0/+17
2020-06-28Add test for issue-71382Yuki Okushi-0/+32
2020-06-27Add test for issue-71381Yuki Okushi-0/+47
2020-06-08fixup! Add regression test for const generic ICE in #72819Ayaz Hafiz-1/+1
2020-06-08fixup! Add regression test for const generic ICE in #72819Ayaz Hafiz-0/+3
2020-06-06fixup! Add regression test for const generic ICE in #72819Ayaz Hafiz-1/+2
2020-06-06Add regression test for const generic ICE in #72819Ayaz Hafiz-0/+26
Closes #72819
2020-06-02update testsBastian Kauschke-4/+11
2020-06-02add WellFormedConst predicateBastian Kauschke-9/+94
2020-05-17update testsBastian Kauschke-14/+10
2020-05-17the best way to fix bugs is by ignoring themBastian Kauschke-32/+0
2020-05-17merge lazy_normalization_consts into const_genericsBastian Kauschke-77/+36
2020-05-17update tests and add relevant feature gate testBastian Kauschke-30/+38
2020-05-17Put lazy normalization behind a feature gateBen Lewis-36/+132
2020-05-17Add lazy normalization testsBen Lewis-3/+159
2020-05-16Rollup merge of #72045 - RalfJung:incomplete-unsound, r=petrochenkovRalf Jung-34/+51
Incomplete features can also be unsound Some incomplete features do not just ICE, they are also currently unsound (e.g. https://github.com/rust-lang/rust/pull/72029, and also `specialization` -- which is not yet marked incomplete but [should be](https://github.com/rust-lang/rust/pull/71420)). This makes the message reflect that. While at it I also added a link to the tracking issue, which hopefully should explain what is incomplete/unsound about the feature.
2020-05-09display `ConstKind::Param`Bastian Kauschke-1/+1
2020-05-09adjust testsRalf Jung-34/+51
2020-05-04Rollup merge of #71038 - lcnr:dyn_trait_structural_match, r=pnkfelixDylan DPC-0/+32
forbid `dyn Trait` in patterns Do not allow `&dyn Trait` as a generic const parameters. This also changes dyn trait in pattern from ICE to error. closes #63322 closes #70972 r? @eddyb
2020-04-30handle ByRef in relateBastian Kauschke-0/+22
2020-04-29emit err when using trait objects in patBastian Kauschke-1/+1
2020-04-29forbid `dyn Trait` in const genericsBastian Kauschke-0/+32
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-23Moving more build-pass tests to check-passVal Markovic-1/+1
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-18Add regression test for #69654Alex Macleod-0/+32
2020-04-14typeck: workaround WF hole in `to_const`.Eduard-Mihai Burtescu-8/+42
2020-04-11rustc: Add a warning count upon completionRoccoDev-2/+30
2020-04-01Rollup merge of #70081 - lcnr:issue68387, r=varkorDylan DPC-3/+3
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-31update testsBastian Kauschke-3/+3
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-24Rollup merge of #70284 - lcnr:issue70273-what-the-heck-git, r=eddybMazdak Farrokhzad-0/+25
correctly handle const params in type_of extends #70223, retry of #70276 fixes #70273 r? @eddyb cc @varkor
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-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/+25
2020-03-22rename testsBastian Kauschke-1/+25
2020-03-22handle unevaluated consts after monomophizeBastian Kauschke-0/+27
2020-03-21fix type of const params in associated types.Bastian Kauschke-0/+38
2020-03-13Add test for issue-67739Yuki Okushi-0/+26
2020-03-13Add test for issue-62504Yuki Okushi-0/+33
2020-03-10fix #62456YI-0/+25
2020-03-02Remove chalk integrationCAD97-18/+0
2020-02-09--bless --compare-mode=nllMatthias Prechtl-1/+1
2019-12-24Rollup merge of #67543 - JohnTitor:regression-tests, r=CentrilMazdak Farrokhzad-0/+34
Add regression tests for fixed ICEs Closes #61747 (fixed from 1.41.0-nightly (4007d4ef2 2019-12-01)) Closes #66205 (fixed from 1.41.0-nightly (4007d4ef2 2019-12-01)) Closes #66270 (fixed by #66246) Closes #67424 (fixed by #67160) Also picking a minor nit up from #67071 with 101dd7bad9432730fa2f625ae43afcc2929457d4 r? @Centril
2019-12-24Apply suggestion from CentrilYuki Okushi-1/+1
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-12-22Remove mem::uninitalized from testsMark Rousskov-0/+12
This purges uses of uninitialized where possible from test cases. Some are merely moved over to the equally bad pattern of MaybeUninit::uninit().assume_init() but with an annotation that this is "the best we can do".