about summary refs log tree commit diff
path: root/src/test/ui/parser
AgeCommit message (Collapse)AuthorLines
2019-03-27Rollup merge of #59421 - estebank:tuple-index-suffix, r=petrochenkovJosh Stone-24/+68
Reject integer suffix when tuple indexing Fix #59418. r? @varkor
2019-03-27Better diagnostic for binary operation on BoxedValueshgallagher1993-2/+4
2019-03-26Add specific message for tuple struct invoked with suffixed numeric field nameEsteban Küber-1/+19
2019-03-26Reword invalid suffixe errorsEsteban Küber-30/+30
2019-03-26Use `expect_no_suffix` for errorEsteban Küber-7/+6
2019-03-26Rollup merge of #59150 - estebank:type-ascription, r=varkorMazdak Farrokhzad-0/+32
Expand suggestions for type ascription parse errors Fix #51222. CC #48016, #47666, #54516, #34255.
2019-03-25review commentsEsteban Küber-3/+13
2019-03-25Reject integer suffix when tuple indexingEsteban Küber-0/+17
2019-03-25compiletest: make path normalization smarterAndy Russell-71/+71
2019-03-23Tweak unsupported negative trait bounds messageEsteban Küber-29/+38
2019-03-22Reword type ascription note to reduce verbosityEsteban Küber-24/+4
2019-03-22Review commentEsteban Küber-4/+4
2019-03-22Expand suggestions for type ascription parse errorsEsteban Küber-0/+52
2019-03-22Rollup merge of #59322 - estebank:diag-tweak, r=davidtwcoMazdak Farrokhzad-49/+23
Tweak incorrect escaped char diagnostic
2019-03-22Rollup merge of #59266 - estebank:struct-parse-recovery, r=petrochenkovMazdak Farrokhzad-0/+21
Do not complain about non-existing fields after parse recovery When failing to parse struct-like enum variants, the ADT gets recorded as having no fields. Record that we have actually recovered during parsing of this variant to avoid complaing about non-existing fields when actually using it. Fix #57361.
2019-03-20Tweak incorrect escaped char diagnosticEsteban Küber-49/+23
2019-03-17Do not complain about non-existing fields after parse recoveryEsteban Küber-0/+21
When failing to parse struct-like enum variants, the ADT gets recorded as having no fields. Record that we have actually recovered during parsing of this variant to avoid complaing about non-existing fields when actually using it.
2019-03-16Recover from incorrect `pub` kw in "reasonable" placesEsteban Küber-15/+9
2019-03-16Recover from missing comma between enum variantsEsteban Küber-8/+22
2019-03-16syntax: Introduce `Ident::can_be_raw`Vadim Petrochenkov-12/+14
2019-03-14Do not complain about unmentioned fields in recovered patternsEsteban Küber-18/+2
When the parser has to recover from malformed code in a pattern, do not complain about missing fields.
2019-03-13add suggestions to invalid macro item errorAndy Russell-2/+50
2019-03-13tidy testSaleem Jaffer-1/+1
2019-03-13adding testSaleem Jaffer-0/+17
2019-03-13Rollup merge of #58876 - estebank:numeric-lifetime, r=petrochenkovMazdak Farrokhzad-0/+32
Parse lifetimes that start with a number and give specific error Fix #58786.
2019-03-11Update tests that don't run on my platformVadim Petrochenkov-1/+1
2019-03-11Update testsVadim Petrochenkov-320/+320
2019-03-09review commentsEsteban Küber-4/+4
2019-03-08Parse lifetimes that start with a number and give specific errorEsteban Küber-0/+32
2019-03-06Add regression test for #58886Esteban Küber-0/+53
2019-03-06Bail when encountering a second unexpected token in the same spanEsteban Küber-16/+1
2019-02-27Rename variadic to c_variadicDan Robertson-4/+4
Function signatures with the `variadic` member set are actually C-variadic functions. Make this a little more explicit by renaming the `variadic` boolean value, `c_variadic`.
2019-02-27Support defining C compatible variadic functionsDan Robertson-2/+2
Add support for defining C compatible variadic functions in unsafe rust with extern "C".
2019-02-25Stabilize `unrestricted_attribute_tokens`Vadim Petrochenkov-3/+1
2019-02-25Restrict value in key-value attributes to literalsVadim Petrochenkov-2/+2
2019-02-24Rollup merge of #57364 - hdhoang:33418_negative_bounds, r=estebankMazdak Farrokhzad-0/+72
Improve parsing diagnostic for negative supertrait bounds closes #33418 r? @estebank
2019-02-23Rollup merge of #58526 - pmccarter:master, r=estebankMazdak Farrokhzad-0/+19
Special suggestion for illegal unicode curly quote pairs Fixes #58436 Did not end up expanding the error message span to include the full string literal since I figured the start of the token was the issue, while the help suggestion span would include up to the closing quotation mark. The look ahead logic does not affect the reader position, not sure if that is an issue (if eg it should still continue to parse after the closing quote without erroring out).
2019-02-23Improve parsing diagnostic for negative supertrait boundsHoàng Đức Hiếu-0/+72
2019-02-22Rollup merge of #58198 - ↵Mazdak Farrokhzad-4/+4
igorsdv:suggest-removing-parentheses-surrounding-lifetimes, r=estebank Suggest removing parentheses surrounding lifetimes Fixes #57386. r? @estebank
2019-02-16ui test for directed quote help suggestion #58436Patrick McCarter-0/+19
2019-02-09Auto merge of #57944 - estebank:unclosed-delim-the-quickening, r=oli-obkbors-21/+13
Deduplicate mismatched delimiter errors Delay unmatched delimiter errors until after the parser has run to deduplicate them when parsing and attempt recovering intelligently. Second attempt at #54029, follow up to #53949. Fix #31528.
2019-02-07Suggest removing parentheses surrounding lifetimesIgor Sadikov-4/+4
2019-02-07Update testsvarkor-57/+25
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-07tweak wording based on in person feedbackEsteban Küber-7/+5
2019-02-07Deduplicate mismatched delimiter errorsEsteban Küber-25/+19
Delay unmatched delimiter errors until after the parser has run to deduplicate them when parsing and attempt recovering intelligently.
2019-01-27Update comment in test which has changed its purposeMark Rousskov-4/+2
2019-01-25Suggestion moving types before associated types.David Wood-0/+4
This commit extends existing suggestions to move lifetimes before types in generic arguments to also suggest moving types behind associated type bindings.
2019-01-24Rollup merge of #57795 - estebank:did-you-mean, r=zackmdavisMazdak Farrokhzad-4/+4
Use structured suggestion in stead of notes
2019-01-24Rollup merge of #57779 - estebank:recover-struct-fields, r=davidtwcoMazdak Farrokhzad-34/+39
Recover from parse errors in literal struct fields and incorrect float literals Fix #52496.
2019-01-21Accept more invalid code that is close to correct fieldsEsteban Küber-11/+3