about summary refs log tree commit diff
path: root/src/test/ui/const-generics
AgeCommit message (Collapse)AuthorLines
2020-08-06allow complex expressions in assoc constsBastian Kauschke-17/+19
2020-08-05Auto merge of #75166 - JulianKnodt:i64494, r=lcnrbors-0/+37
Add regression test for #64494 Add regression test to indicate if this compilation ever succeeds. Fixes #64494 r? @lcnr
2020-08-05impl reviewBastian Kauschke-8/+12
2020-08-05forbid complex types for generic parametersBastian Kauschke-0/+52
2020-08-05forbid generic params in complex constsBastian Kauschke-0/+95
2020-08-04Add regression testkadmin-0/+37
2020-08-04Add regression testkadmin-0/+74
As well as matching error outputs
2020-07-31Removed error check in order to prevent ICEkadmin-0/+177
2020-07-29Rollup merge of #74671 - rust-lang:const-generics-coerce-unsized, r=nikomatsakisYuki Okushi-0/+11
add const generics array coercion test
2020-07-27update testsBastian Kauschke-1/+10
2020-07-27forbid generic params inside of anon consts in ty defaultsBastian Kauschke-0/+33
2020-07-26Add test for issue-56445Yuki Okushi-0/+32
2020-07-26Auto merge of #74060 - kpp:remove_length_at_most_32, r=dtolnaybors-542/+181
Remove trait LengthAtMost32 This is a continuation of https://github.com/rust-lang/rust/pull/74026 preserving the original burrbull's commit. I talked to @burrbull, he suggested me to finish his PR.
2020-07-24Auto merge of #74676 - lcnr:generics-no-sort, r=varkorbors-2/+34
correctly deal with unsorted generic parameters We now stop sorting generic params and instead correctly handle unsorted params in the rest of the compiler. We still restrict const params to come after type params though, so this PR does not change anything which is visible to users. This might slightly influence perf, so let's prevent any unintentional rollups. @bors rollup=never r? @varkor
2020-07-23test usageBastian Kauschke-2/+15
2020-07-23add more complex param order testBastian Kauschke-1/+20
2020-07-23add const genericsBastian Kauschke-0/+11
2020-07-23tweak wordingBastian Kauschke-1/+1
Co-authored-by: varkor <github@varkor.com>
2020-07-22require type defaults to be after const generic parametersBastian Kauschke-0/+27
as if this is currently possible. HA!
2020-07-19Add test for an explicit non-'static lifetime in a const argumentGabriel Smith-0/+28
2020-07-18Rollup merge of #74445 - lcnr:const-generic-ty-decl, r=Dylan-DPCManish Goregaokar-0/+48
add test for #62878 forgot to push this as part of #74159 r? @Dylan-DPC
2020-07-17add test for #62878Bastian Kauschke-0/+48
2020-07-17Add regression test for #69414Alex Macleod-2/+5
Closes #69414 (no longer ICEs after #74159)
2020-07-16Rollup merge of #74392 - lcnr:const-generics-update, r=varkorManish Goregaokar-0/+273
const generics triage I went through all const generics issues and closed all issues which are already fixed. Some issues already have a regression test but were not closed. Also doing this as part of this PR. uff r? @eddyb @varkor closes #61936 closes #62878 closes #63695 closes #67144 closes #68596 closes #69816 closes #70217 closes #70507 closes #70586 closes #71348 closes #71805 closes #73120 closes #73508 closes #73730 closes #74255
2020-07-16add regression test for #74255Bastian Kauschke-0/+18
2020-07-16add regression test for #73730Bastian Kauschke-0/+17
2020-07-16add regression test for #73508Bastian Kauschke-0/+23
2020-07-16add regression test for #73491Bastian Kauschke-0/+9
2020-07-16add regression test for #73120Bastian Kauschke-0/+22
2020-07-16add regression test for #71805Bastian Kauschke-0/+41
2020-07-16add regression test for #71348Bastian Kauschke-0/+35
2020-07-16add regression test for #71169Bastian Kauschke-0/+27
2020-07-16add regression test for #70586Bastian Kauschke-0/+33
2020-07-16add regression test for #70217Bastian Kauschke-0/+16
2020-07-16add regression test for #68596Bastian Kauschke-0/+18
2020-07-16add regression tests for #67144Bastian Kauschke-0/+50
2020-07-16bless ui testsBastian Kauschke-2/+7
2020-07-16update help messageBastian Kauschke-7/+7
2020-07-16don't supply generics to AnonConsts in param listsBastian Kauschke-32/+12
2020-07-16add self dependent const param testBastian Kauschke-1/+24
2020-07-16forbid generic params in the type of const paramsBastian Kauschke-25/+94
2020-07-15update testBastian Kauschke-2/+4
2020-07-15add const generic testsBastian Kauschke-0/+333
2020-07-14Suggest boxing or borrowing unsized fieldsEsteban Küber-2/+2
2020-07-06Rollup merge of #73953 - JohnTitor:audit-hidden-sugg, r=estebankManish Goregaokar-13/+21
Audit hidden/short code suggestions Should fix #73641. Audit uses of `span_suggestion_short` and `tool_only_span_suggestion` (`span_suggestion_hidden` is already tested with `run-rustfix`). Leave some FIXMEs for futher improvements/fixes. r? @estebank
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-542/+181
2020-07-04add `lazy_normalization_consts` feature gateBastian Kauschke-0/+0
2020-07-02Audit uses of `span_suggestion_short`Yuki Okushi-13/+21
2020-06-30remove duplicate testsBastian Kauschke-38/+0