about summary refs log tree commit diff
path: root/src/test/ui/token
AgeCommit message (Collapse)AuthorLines
2018-10-21Move more parsing tests to ui/parserVadim Petrochenkov-260/+0
2018-09-05Provide more context for unenclosed delimitersEsteban Küber-0/+2
* 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-09-05Reword un-closed delimiter labelEsteban Küber-1/+1
2018-08-15Tweak unclosed delimiter parser errorEsteban Küber-7/+4
2018-07-18Implement existential typesOliver Schneider-2/+2
2018-06-21Explicitly ban async in trait implsTaylor Cramer-2/+2
This wouldn't compile before because the return type wouldn't match, but now it's properly an error.
2018-06-01Modified another test case to expect a closing delimiter.Crazycolorz5-2/+2
2018-03-14Add empty main() to tests where it is missing.Eric Huss-9/+7
2018-03-14Add crate name to "main function not found" error message.Eric Huss-2/+2
Fixes #44798 and rust-lang/cargo#4948.
2018-03-14update testsGuillaume Gomez-4/+4
2018-02-27Add label to primary span in some parse errorsEsteban Küber-1/+1
2018-02-26Update UI testsVadim Petrochenkov-2/+2
2018-02-26Update UI testsVadim Petrochenkov-20/+20
2018-02-25Update ui testsGuillaume Gomez-0/+4
2018-01-07`struct` pattern parsing and diagnostic tweaksEsteban Küber-0/+55
- Recover from struct parse error on match and point out missing match body. - Point at struct when finding non-identifier while parsing its fields. - Add label to "expected identifier, found {}" error.
2017-12-14Remove NOTE/HELP annotations from UI testsVadim Petrochenkov-19/+17
2017-11-24Merge cfail and ui tests into ui testsOliver Schneider-8/+6
2017-07-05Merge remote-tracking branch 'origin/master' into proc_macro_apiAlex Crichton-5/+5
2017-07-02Revert "Change error count messages"Ariel Ben-Yehuda-5/+5
This reverts commit 5558c64f33446225739c1153b43d2e309bb4f50e.
2017-06-26Update UI test with proc_macro changesAlex Crichton-0/+3
2017-06-26Simplify `hygiene::Mark` application, andJeffrey Seyfried-1/+1
remove variant `Token::SubstNt` in favor of `quoted::TokenTree::MetaVar`.
2017-05-30Add new error codeGuillaume Gomez-2/+2
2017-05-24Change error count messagesMichael Kohl-5/+5
See #33525 for details.
2017-04-17libsyntax/parse: improve associated item error reportingAriel Ben-Yehuda-1/+9
Fixes #41161. Fixes #41239.
2017-04-10Point at only one char on `Span::next_point`Esteban Küber-0/+23
Avoid pointing at two chars so the diagnostic output doesn't display a multiline span when starting beyond a line end.
2017-03-27Fix unittestsEsteban Küber-1/+5
2017-03-25Improve wording and spans for unexpected tokenEsteban Küber-0/+170
* Point at where the token was expected instead of the last token successfuly parsed. * Only show `unexpected token` if the next char and the unexpected token don't have the same span. * Change some cfail and pfail tests to ui test. * Don't show all possible tokens in span label if they are more than 6.