about summary refs log tree commit diff
path: root/src/test/ui/parser
AgeCommit message (Collapse)AuthorLines
2019-01-06tests: Do not use `-Z parse-only`, continue compilation to test recoveryVadim Petrochenkov-853/+735
2019-01-01Auto merge of #57209 - estebank:suggest-raw-ident, r=petrochenkovbors-0/+32
Suggest using raw identifiers in 2018 edition when using keywords
2018-12-31Do not use unicode character in diagnostic helpEsteban Küber-3/+3
2018-12-31Use structured suggestion for braceless unicode escape squenceEsteban Küber-1/+12
2018-12-31Address review commentsEsteban Küber-0/+32
- Suggest raw ident escaping in all editions - Keep primary label in all cases
2018-12-27Fix rebase and more CI failuresVadim Petrochenkov-1/+1
2018-12-27Do not abort compilation if expansion produces errorsVadim Petrochenkov-2/+9
Fix a number of uncovered deficiencies in diagnostics
2018-12-25Remove licensesMark Rousskov-3321/+431
2018-12-17Do not point at delim spans for complete correct blocksEsteban Küber-0/+19
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-1/+1
2018-12-06Auto merge of #56392 - petrochenkov:regensym, r=oli-obkbors-0/+11
Delay gensym creation for "underscore items" (`use foo as _`/`const _`) until name resolution So they cannot be cloned by macros. See https://github.com/rust-lang/rust/pull/56303 for the discussion. Mostly fix cross-crate use of underscore items by inverting the "gensyms are lost in metadata" bug as described in https://github.com/rust-lang/rust/pull/56303#issuecomment-442464695. Fix unused import warnings for single-segment imports (first commit) and `use crate_name as _` imports (as specified in https://github.com/rust-lang/rust/pull/56303#issuecomment-442274118). Prohibit accidentally implemented `static _: TYPE = EXPR;` (cc https://github.com/rust-lang/rust/pull/55983). Add more tests for `use foo as _` imports.
2018-12-04Update testsOliver Scherer-2/+2
2018-12-02Delay gensym creation for "underscore items" until name resolutionVadim Petrochenkov-0/+11
Prohibit `static _` Fis unused import warnings for `use foo as _` Add more tests for `use foo as _`
2018-11-29Rollup merge of #56220 - estebank:suggest-lifetime-move, r=nikomatsakisGuillaume Gomez-0/+20
Suggest appropriate place for lifetime when declared after type arguments
2018-11-25Suggest appropriate place for lifetime when declared after type argumentsEsteban Küber-0/+20
2018-11-23Reword incorrect macro invocation primary labelEsteban Küber-2/+2
2018-11-05Auto merge of #55451 - estebank:arg-doc, r=pnkfelixbors-11/+116
Custom diagnostic when trying to doc comment argument When writing ``` pub fn f( /// Comment id: u8, ) {} ``` Produce a targeted diagnostic ``` error: documentation comments cannot be applied to method arguments --> $DIR/fn-arg-doc-comment.rs:2:5 | LL | /// Comment | ^^^^^^^^^^^ doc comments are not allowed here ``` Fix #54801.
2018-10-28Use token description in "expected/found" parse messagesEsteban Küber-14/+30
2018-10-28Provide specific label for patern parsing errorEsteban Küber-18/+11
2018-10-28Point at `match` when a parse failure ocurrs inside of itEsteban Küber-3/+6
2018-10-28Produce targeted diagnostic when using doc comments on fn argsEsteban Küber-3/+112
Before parsing argument names and types, try to consume an incorrectly included doc comment or attribute in order to recover and continue parsing the rest of the fn definition.
2018-10-26Rollup merge of #55298 - estebank:macro-def, r=pnkfelixkennytm-2/+8
Point at macro definition when no rules expect token Fix #35150.
2018-10-24Point to macro def span instead of whole bodyEsteban Küber-12/+8
2018-10-23Point at macro definition when no rules expect tokenEsteban Küber-4/+14
2018-10-23Modify invalid macro in expression context diagnosticEsteban Küber-10/+8
2018-10-21Fix a few tests with target-specific outputVadim Petrochenkov-30/+50
Enable one fully ignored test
2018-10-21Make sure all ui/parse tests have `-Z parse-only`Vadim Petrochenkov-153/+151
Except those testing parsing during macro expansion
2018-10-21Make some ui/parser tests compile-passVadim Petrochenkov-68/+11
2018-10-21Move more parsing tests to ui/parserVadim Petrochenkov-0/+534
2018-10-21Move parse-fail tests to UIVadim Petrochenkov-0/+8156
2018-10-05add suggestion for inverted function parametersAndy Russell-0/+86
Fixes #54065.
2018-09-20Detect `for _ in in bar {}` typoEsteban Küber-0/+18
2018-09-05Change wording of unclosed delimiter labelEsteban Küber-2/+2
2018-09-05Provide more context for unenclosed delimitersEsteban Küber-0/+49
* When encountering EOF, point at the last opening brace that does not have the same indentation level as its close delimiter. * When encountering the wrong type of close delimiter, point at the likely correct open delimiter to give a better idea of what went wrong.
2018-08-23Stabilize 'attr_literals' feature.Sergio Benitez-0/+2
2018-06-19Add test for updated parser errorEsteban Küber-0/+32