about summary refs log tree commit diff
path: root/src/test/ui/parser/macro
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-393/+0
2022-12-01While parsing enum variant, the error message always disappearYiming Lei-0/+1
Because the error message that emit out is from main error of parser The information of enum variant disappears while parsing enum variant with error We only check the syntax of expecting token, i.e, in case #103869 It will error it without telling the message that this error is from pasring enum variant. Propagate the sub-error from parsing enum variant to the main error of parser by chaining it with map_err Check the sub-error before emitting the main error of parser and attach it. Fix #103869
2022-11-14Show a note where a macro failed to matchNilstrieb-0/+12
This shows a small note on what the macro matcher was currently processing to aid with "no rules expected the token X" errors.
2022-10-01bless ui testsMaybe Waffle-1/+1
2022-09-27add a label to struct/enum/union ident nameTakayuki Maeda-0/+2
2022-07-19Mention first and last macro in backtraceMichael Goulet-1/+1
2022-07-10explain doc comments in macros a bitMichael Goulet-2/+8
2022-04-09expand: Remove `ParseSess::missing_fragment_specifiers`Vadim Petrochenkov-2/+14
It was used for deduplicating some errors for legacy code which are mostly deduplicated even without that, but at cost of global mutable state, which is not a good tradeoff.
2021-12-04Lint bare traits in AstConv.Camille GILLOT-13/+1
2021-10-15Bless testsCameron Steffen-7/+7
2021-08-30Fix testsCameron Steffen-2/+2
2021-08-09Link to edition guide instead of issues for 2021 lints.Mara Bos-1/+1
2021-06-25Address PR feedbackRyan Levick-2/+2
2021-06-25Change how edition based future compatibility warnings are handledRyan Levick-2/+2
2021-05-12Show macro name in 'this error originates in macro' messageAaron Hill-5/+5
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-0/+3
2021-02-03Handle `Span`s for byte and raw strings and add more detailEsteban Küber-2/+2
2020-12-22Revert "Promote missing_fragment_specifier to hard error"Wesley Wiser-12/+5
This reverts commit 02eae432e7476a0686633a8c2b7cb1d5aab1bd2c.
2020-08-18Promote missing_fragment_specifier to hard errorAleksey Kladov-5/+12
It has been deny_by_default since 2017 (and warned for some time before that), so it seems reasonable to promote it. The specific technical motivation to do this now is to remove a field from `ParseSess` -- it is a global state, and global state makes extracting libraries annoying. Closes #40107
2020-04-11rustc: Add a warning count upon completionRoccoDev-1/+1
2020-03-24expand: address review commentsMazdak Farrokhzad-5/+5
2020-03-24mbe::transcribe: defatalize errors.Mazdak Farrokhzad-4/+13
2020-03-24generic_extension: defatalize Error caseMazdak Farrokhzad-3/+5
2020-03-22Normalize wording of privacy access labelsEsteban Küber-1/+1
2020-03-21Add explanation message for E0224Nixon Enraght-Moony-0/+1
2020-03-10trait-object-lifetime-parens: improve recovery.Mazdak Farrokhzad-6/+25
2020-02-24parse: use `parse_item_common` in `parse_assoc_item_`.Mazdak Farrokhzad-11/+23
2020-02-15parse associated statics.Mazdak Farrokhzad-2/+2
2020-02-13parser: misc small item related improvements & cleanups.Mazdak Farrokhzad-12/+15
2020-02-06rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros.Eduard-Mihai Burtescu-0/+10
2020-01-16resolve: Point at the private item definitions in privacy errorsVadim Petrochenkov-1/+10
2019-12-12Alias `TraitItem` & `ImplItem`.Mazdak Farrokhzad-2/+2
Allow defaultness on trait items syntactically.
2019-11-11syntactically allow visibility on trait item & enum variantMazdak Farrokhzad-3/+3
2019-11-06Remove "here" from "expected one of X here"Esteban Küber-3/+3
2019-11-03syntax: Avoid span arithmetics for delimiter tokensVadim Petrochenkov-1/+1
2019-10-28review commentsEsteban Küber-1/+1
2019-07-19Handle more cases of typos misinterpreted as type ascriptionEsteban Küber-1/+1
2019-06-09Update tests since ? macro op is supported on 2015.Mazdak Farrokhzad-2/+2
2019-05-31fix tidyEsteban Küber-5/+3
2019-05-30Remove unecessary `-Z continue-parse-after-error` from testsEsteban Küber-1/+1
2019-05-24review commentsEsteban Küber-0/+12
2019-05-02introduce unescape moduleAleksey Kladov-0/+28
Currently, we deal with escape sequences twice: once when we lex a string, and a second time when we unescape literals. This PR aims to remove this duplication, by introducing a new `unescape` mode as a single source of truth for character escaping rules
2019-03-11Update testsVadim Petrochenkov-12/+12
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-114/+14
2018-11-23Reword incorrect macro invocation primary labelEsteban Küber-2/+2
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