about summary refs log tree commit diff
path: root/src/test/ui/const-generics/min_const_generics
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-1249/+0
2022-11-14Show a note where a macro failed to matchNilstrieb-0/+6
This shows a small note on what the macro matcher was currently processing to aid with "no rules expected the token X" errors.
2022-11-11Visit opaque types during type collection too.Camille GILLOT-26/+5
2022-10-18`const_evaluatable_unchecked` to const evallcnr-11/+13
2022-10-01bless ui testsMaybe Waffle-2/+2
2022-08-26make read_immediate error immediately on uninit, so ImmTy can carry ↵Ralf Jung-38/+20
initialized Scalar
2022-06-29interpret: adjust error from constructing an invalid valueRalf Jung-8/+8
2022-06-21Add a full regression test for #73727Yuki Okushi-17/+0
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-04-04diagnostics: use correct span for const genericsMichael Howell-2/+2
Fixes #95616
2022-02-10fix min_const_generics oversightlcnr-0/+29
2022-01-13Fix suggesting turbofish with lifetime argumentsMichael Goulet-12/+12
2021-12-18Rollup merge of #89090 - cjgillot:bare-dyn, r=jackh726Matthias Krüger-23/+11
Lint bare traits in AstConv. Removing the lint from lowering allows to: - make lowering querification easier; - have the lint implementation in only one place. r? `@estebank`
2021-12-10update testsEllen-19/+4
2021-12-04Lint bare traits in AstConv.Camille GILLOT-23/+11
2021-08-30`feature(const_param_types)` -> `feature(adt_const_params)`lcnr-8/+8
2021-08-30`feature(const_generics)` -> `feature(const_param_types)`lcnr-25/+23
2021-08-30rename const_evaluatable_checked to generic_const_exprsEllen-8/+8
:sparkles:
2021-08-12Rollup merge of #87885 - m-ou-se:edition-guide-links, r=rylevGuillaume Gomez-1/+1
Link to edition guide instead of issues for 2021 lints. This changes the 2021 lints to not link to github issues, but to the edition guide instead. Fixes #86996
2021-08-11Modify structured suggestion outputEsteban Küber-23/+23
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2021-08-09Link to edition guide instead of issues for 2021 lints.Mara Bos-1/+1
2021-07-26Actually infer args in visitorskadmin-0/+1
2021-07-25Add generic arg inferkadmin-15/+4
2021-06-25Address PR feedbackRyan Levick-2/+2
2021-06-25Change how edition based future compatibility warnings are handledRyan Levick-2/+2
2021-06-11Run full const-generics test for issue-72293Yuki Okushi-21/+0
2021-05-13wowEllen-1/+1
2021-05-13completion uwuEllen-1/+0
2021-05-12Show macro name in 'this error originates in macro' messageAaron Hill-3/+3
When there are multiple macros in use, it can be difficult to tell which one was responsible for producing an error.
2021-04-16Fix testsRyan Levick-10/+13
2021-03-31Add 32bit.stderr files.Hameer Abbasi-0/+72
2021-03-31Rename stderr->64bit.stderr where needed.Hameer Abbasi-8/+9
2021-03-31Add allocation information to undefined behaviour errors.Hameer Abbasi-0/+12
2021-03-23Update with commentskadmin-3/+33
2021-03-23Add query for const_param_defaultkadmin-0/+14
2021-03-23progress, stuff compiles nowlcnr-6/+5
2021-03-23Some refactoringvarkor-12/+10
2021-03-23Add has_default to GenericParamDefKind::Constkadmin-2/+3
This currently creates a field which is always false on GenericParamDefKind for future use when consts are permitted to have defaults Update const_generics:default locations Previously just ignored them, now actually do something about them. Fix using type check instead of value Add parsing This adds all the necessary changes to lower const-generics defaults from parsing. Change P<Expr> to AnonConst This matches the arguments passed to instantiations of const generics, and makes it specific to just anonymous constants. Attempt to fix lowering bugs
2021-01-05fixed const_generics error helpJake Vossen-9/+9
2021-01-01make `const_generics_defaults` use the unstable syntax mechanismRémy Rakic-8/+12
This is important to not accidentally stabilize the parsing of the syntax while it still is experimental and not formally accepted
2021-01-01update `min_const_generics` tests using default values for const paramsRémy Rakic-8/+12
The `const_generics_defaults` now handles them, and they correctly parse, so we can update these tests expecting a parser error .
2020-12-26update testsBastian Kauschke-104/+73
2020-12-26delete no longer relevant testsBastian Kauschke-16/+0
2020-12-05Const parameters can not be inferred with `_`Ethan Brierley-0/+19
Small improvement. Thanks varkor Co-authored-by: varkor <github@varkor.com> Bless
2020-11-26Fix new 'unnecessary trailing semicolon' warningsAaron Hill-5/+5
2020-11-24Swap note for helpmendess-17/+17
2020-11-24Requested changesmendess-4/+8
2020-11-24Add note to use nightly when using expr in const genericsmendess-0/+4
2020-11-16improve error message for const ty param mismatchBastian Kauschke-71/+36
2020-11-12Rollup merge of #78987 - lcnr:integer-sizes, r=varkorMara Bos-5/+43
extend min_const_generics param ty tests Apparently we never tested for `u128` and `i128` before this, so I added a test for all types which are allowed. r? ``@varkor``
2020-11-12extend min_const_generics param ty testsBastian Kauschke-5/+43