summary refs log tree commit diff
path: root/src/test/ui/const-generics/issues
AgeCommit message (Collapse)AuthorLines
2021-08-30`feature(const_param_types)` -> `feature(adt_const_params)`lcnr-34/+34
2021-08-30`feature(const_generics)` -> `feature(const_param_types)`lcnr-1690/+169
2021-08-30rename const_evaluatable_checked to generic_const_exprsEllen-33/+33
:sparkles:
2021-08-16Use note to point at bound introducing requirementEsteban Küber-58/+82
2021-08-11Modify structured suggestion outputEsteban Küber-29/+5
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2021-07-26Actually infer args in visitorskadmin-1/+1
2021-07-25Add generic arg inferkadmin-7/+7
2021-07-19move const-generic issues into seperate directoryMarcel Hellwig-0/+641
2021-07-19add testcase for 87076Marcel Hellwig-0/+20
using https://github.com/rust-lang/rust/issues/87076#issuecomment-878090143 as testcase
2021-07-03Fix const-generics ICE related to bindingYuki Okushi-0/+142
2021-06-18Lint for unused borrows as part of UNUSED_MUST_USEhi-rustin-2/+2
2021-05-25Auto merge of #85481 - lcnr:const-equate, r=matthewjasperbors-2/+12
deal with `const_evaluatable_checked` in `ConstEquate` Failing to evaluate two constants which do not contain inference variables should not result in ambiguity.
2021-05-19deal with `const_evaluatable_checked` in `ConstEquate`lcnr-2/+12
2021-05-11improve diagnosts for GATsb-naber-2/+2
2021-05-01Auto merge of #84410 - BoxyUwU:blue, r=varkorbors-0/+39
Fix generic arg mismatch errors being ignored with explicit late bound lifetimes Fixes #83466 r? `@varkor`
2021-05-01test: *sneezes*Ellen-0/+39
2021-04-27Rename a test for consistencyYuki Okushi-0/+0
2021-04-27Add a regression test for issue-84408Yuki Okushi-0/+38
2021-04-06Remove trailing `:` from E0119 messageEsteban Küber-1/+1
2021-03-31give full path of constraint in suggest_constraining_type_paramhi-rustin-8/+8
revert file bless with nll mode
2021-03-27Rollup merge of #81351 - lcnr:big-money-big-prices, r=oli-obkDylan DPC-3/+32
combine: stop eagerly evaluating consts `super_relate_consts` eagerly evaluates constants which doesn't seem too great. I now also finally understand why all of the unused substs test passed. The reason being that we just evaluated the constants in `super_relate_consts` :laughing: While this change isn't strictly necessary as evaluating consts here doesn't hurt, it still feels a lot cleaner to do it this way r? `@oli-obk` `@nikomatsakis`
2021-03-27update testslcnr-8/+8
2021-03-27combine: stop eagerly evaluating constsBastian Kauschke-3/+32
2021-03-27Add regression tests for #56445Simon Jakobi-3/+48
Closes #56445.
2021-03-05Bump mir-opt-level from 3 to 4 in testsSantiago Pastorino-1/+1
2021-01-10Rework diagnostics for wrong number of generic argsPatryk Wychowaniec-3/+15
2021-01-05fixed const_generics error helpJake Vossen-16/+16
2020-12-30Add regression test for #80062LeSeulArtichaut-0/+21
2020-12-27Add regression test for #80375LeSeulArtichaut-0/+15
2020-12-26update testsBastian Kauschke-161/+106
2020-12-26delete no longer relevant testsBastian Kauschke-21/+0
2020-12-05Const parameters can not be inferred with `_`Ethan Brierley-0/+2
Small improvement. Thanks varkor Co-authored-by: varkor <github@varkor.com> Bless
2020-11-29Update tests to remove old numeric constantsbstrie-16/+16
Part of #68490. Care has been taken to leave the old consts where appropriate, for testing backcompat regressions, module shadowing, etc. The intrinsics docs were accidentally referring to some methods on f64 as std::f64, which I changed due to being contrary with how we normally disambiguate the shadow module from the primitive. In one other place I changed std::u8 to std::ops since it was just testing path handling in macros. For places which have legitimate uses of the old consts, deprecated attributes have been optimistically inserted. Although currently unnecessary, they exist to emphasize to any future deprecation effort the necessity of these specific symbols and prevent them from being accidentally removed.
2020-11-24Swap note for helpmendess-33/+33
2020-11-24Requested changesmendess-14/+17
2020-11-24Add note to use nightly when using expr in const genericsmendess-0/+14
2020-11-16improve error message for const ty param mismatchBastian Kauschke-16/+9
2020-10-22min_const_generics: allow ty param in repeat exprBastian Kauschke-15/+20
2020-10-17Suggest minimal subset features in `incomplete_features` lintYuki Okushi-0/+8
2020-10-12Bless expected errorsEthan Brierley-54/+54
2020-10-11`min_const_generics` diagnostics improvementsEthan Brierley-71/+71
2 3
2020-10-05Rollup merge of #77439 - varkor:min_const_generics-tests, r=lcnr,estebankDylan DPC-35/+35
Fix missing diagnostic span for `impl Trait` with const generics, and add various tests for `min_const_generics` and `const_generics` Closes https://github.com/rust-lang/rust/issues/61410. Adds `min_const_generics` tests for: - https://github.com/rust-lang/rust/issues/73727 - https://github.com/rust-lang/rust/issues/72293 - https://github.com/rust-lang/rust/issues/67375 - https://github.com/rust-lang/rust/issues/75153 - https://github.com/rust-lang/rust/issues/71922 - https://github.com/rust-lang/rust/issues/69913 - https://github.com/rust-lang/rust/issues/67945 - https://github.com/rust-lang/rust/issues/69239 Adds `const_generics` tests for: - https://github.com/rust-lang/rust/issues/67375 - https://github.com/rust-lang/rust/issues/75153 - https://github.com/rust-lang/rust/issues/71922 - https://github.com/rust-lang/rust/issues/69913 - https://github.com/rust-lang/rust/issues/67945 - https://github.com/rust-lang/rust/issues/69239 (I only added separate `min_const_generics` and `const_generics` tests if they were handled differently by the two features.) We need to figure out how to deduplicate when `const_generics` is stabilised, but we can discuss that later. For now, we should be checking neither feature breaks, so require regression tests for both. I've given them identical names when I've added both, which should make it easier to spot them later. r? @lcnr
2020-10-03Replace "non trivial" with "non-trivial"varkor-35/+35
2020-10-01Add a regression test for issue-75299Yuki Okushi-0/+11
2020-09-28const evaluatable: improve `TooGeneric` handlingBastian Kauschke-13/+1
2020-09-25Rollup merge of #77073 - lcnr:ty-trait-param, r=matthewjasperJonas Schievink-0/+21
dead_code: look at trait impls even if they don't contain items fixes #70225
2020-09-24update testsBastian Kauschke-1/+1
2020-09-22dead_code: look at trait impls even if they don't contain itemsBastian Kauschke-0/+21
2020-09-21Rollup merge of #76581 - lcnr:bound-too-generic, r=eddybecstatic-morse-0/+124
do not ICE on bound variables, return `TooGeneric` instead fixes #73260, fixes #74634, fixes #76595 r? @nikomatsakis
2020-09-21add testsBastian Kauschke-0/+45