about summary refs log tree commit diff
path: root/src/test/ui/macros
AgeCommit message (Collapse)AuthorLines
2019-01-11don't unwrap unexpected tokens in `format!`Andy Russell-4/+11
Fixes #57512.
2019-01-02make `panictry!` private to libsyntaxAndy Russell-2/+123
This commit completely removes usage of the `panictry!` macro from outside libsyntax. The macro causes parse errors to be fatal, so using it in libsyntax_ext caused parse failures *within* a syntax extension to be fatal, which is probably not intended. Furthermore, this commit adds spans to diagnostics emitted by empty extensions if they were missing, à la #56491.
2018-12-29Auto merge of #57140 - estebank:str-err, r=varkorbors-18/+26
Tweaks to format string diagnostics Add label spans and fix incorrect spans. Fix #55155, fix #55350.
2018-12-27Fix rebase and more CI failuresVadim Petrochenkov-21/+21
2018-12-27Address review comments and CI failuresVadim Petrochenkov-5/+3
2018-12-27Do not abort compilation if expansion produces errorsVadim Petrochenkov-1/+7
Fix a number of uncovered deficiencies in diagnostics
2018-12-26Add span label to unused string formatting argumentEsteban Küber-18/+26
Fix #55350.
2018-12-25Remove licensesMark Rousskov-825/+216
2018-12-10Rollup merge of #56491 - euclio:assert-error, r=estebankGuillaume Gomez-0/+20
emit error with span for empty asserts Fixes #55547.
2018-12-04emit error with span for empty assertsAndy Russell-0/+20
Fixes #55547.
2018-12-04Update ui testsOliver Scherer-1/+1
2018-12-04Update testsOliver Scherer-0/+1
2018-11-27fix testMark Mansi-2/+2
2018-11-27fix testMark Mansi-2/+2
2018-11-27update testsMark Mansi-189/+16
2018-11-27Auto merge of #55402 - estebank:macro-eof-2, r=nikomatsakisbors-25/+28
Point at end of macro arm when encountering EOF Fix #52866.
2018-11-27resolve: Suggest `crate::` for resolving ambiguities when appropriateVadim Petrochenkov-0/+42
More precise spans for ambiguities from macros
2018-11-23Reword EOF in macro arm messageEsteban Küber-1/+1
2018-11-23Keep label on moved spans and point at macro invocation on parse errorEsteban Küber-1/+1
2018-11-23Point at macro arm when it doesn't expand to an expressionEsteban Küber-0/+3
2018-11-23Reword incorrect macro invocation primary labelEsteban Küber-21/+21
2018-11-23Add label when replacing primary DUMMY_SP in macro expansionEsteban Küber-1/+1
2018-11-23Point at end of macro arm when encountering EOFEsteban Küber-5/+5
Fix #52866
2018-11-18resolve: Avoid sentence breaks in diagnosticsVadim Petrochenkov-16/+16
2018-11-18resolve: Tweak some articles in ambiguity diagnosticsVadim Petrochenkov-1/+1
2018-11-18resolve: Check resolution consistency for import paths and multi-segment ↵Vadim Petrochenkov-4/+5
macro paths
2018-11-18resolve: Improve diagnostics for resolution ambiguitiesVadim Petrochenkov-70/+56
2018-11-07Removed `#[rustc_error]` from tests that are all `// compile-pass`.Felix S. Klock II-48/+13
I also added `// skip-codegen` to each one, to address potential concerns that this change would otherwise slow down our test suite spending time generating code for files that are really just meant to be checks of compiler diagnostics. (However, I will say: My preference is to not use `// skip-codegen` if one can avoid it. We can use all the testing of how we drive LLVM that we can get...) (Updated post rebase.)
2018-11-01enforce unused-must-use lint in macrosAlex Burka-0/+31
2018-10-28resolve: More precise spans for privacy errorsVadim Petrochenkov-2/+2
2018-10-26Rollup merge of #55301 - estebank:macro-allowed, r=petrochenkovkennytm-96/+288
List allowed tokens after macro fragments Fix #34069.
2018-10-26Rollup merge of #55298 - estebank:macro-def, r=pnkfelixkennytm-21/+81
Point at macro definition when no rules expect token Fix #35150.
2018-10-26Rollup merge of #55292 - estebank:macro-eof, r=pnkfelixkennytm-15/+72
Macro diagnostics tweaks Fix #30128, fix #10951 by adding an appropriate span to the diagnostic. Fix #26288 by suggesting adding semicolon to macro call.
2018-10-25List allowed tokens after macro fragmentsEsteban Küber-96/+288
2018-10-24Fix incorrect semicolon suggestionEsteban Küber-3/+1
2018-10-24Point to macro def span instead of whole bodyEsteban Küber-146/+86
2018-10-23Point at macro definition when no rules expect tokenEsteban Küber-48/+168
2018-10-24Add `extern crate` items to extern preludeVadim Petrochenkov-4/+0
2018-10-23Modify invalid macro in expression context diagnosticEsteban Küber-15/+59
2018-10-23Add macro call span when lacking any other span in diagnosticEsteban Küber-0/+15
2018-10-12Add missing lifetime fragment specifier to error message.Eric Huss-1/+1
A very minor issue, `lifetime` was missing from the error list. I left `literal` in the list, even though it is unstable. It looks like it may stabilize soon anyways.
2018-10-10Remove incorrect span for second label inner macro invocationholmgr-3/+0
2018-10-07Auto merge of #54813 - petrochenkov:uilocale, r=alexcrichtonbors-28/+17
Fix two UI tests with locale-dependent output Closes https://github.com/rust-lang/rust/issues/54719
2018-10-05make `Parser::parse_foreign_item()` return a foreign item or errorAustin Bonander-0/+27
closes #54441
2018-10-05Fix two UI tests with locale-dependent outputVadim Petrochenkov-28/+17
2018-10-03resolve: Prefer `macro_rules` definitions to in-module macro definitions in ↵Vadim Petrochenkov-0/+83
some cases
2018-09-22Stabilize crate_in_paths, extern_absolute_paths and extern_prelude on all ↵Eduard-Mihai Burtescu-0/+8
editions.
2018-09-16Auto merge of #54157 - euclio:structured-suggestion, r=estebankbors-1/+1
use structured suggestion for "missing mut" label Fixes #54133 for both NLL and non-NLL. r? @estebank I'm not super happy with the existing wording here, since it's now a suggestion. I wonder if the message would work better as something like "help: make binding mutable: `mut foo`"? Also, are the `HELP` and `SUGGESTION` comments necessary?
2018-09-13resolve: Introduce two sub-namespaces in macro namespaceVadim Petrochenkov-21/+14
2018-09-12use structured suggestion for "missing mut" labelAndy Russell-1/+1
Fixes #54133.