about summary refs log tree commit diff
path: root/src/test/ui/macros
AgeCommit message (Collapse)AuthorLines
2019-04-10make duplicate matcher bindings a hard errorMark Mansi-32/+37
2019-04-10Tweak unstable diagnostic outputEsteban Küber-4/+8
2019-04-10clarify what the item is in "not a module" errorAndy Russell-6/+6
2019-03-31Rollup merge of #59574 - JohnTitor:distinguish-error-vs-warning, r=CentrilMazdak Farrokhzad-1/+1
Distinguish message for external macros depending on error level fixes #57716 (I picked you because assigned to this issue.) r? @estebank
2019-03-31Distinguish depending on error levelYuki OKUSHI-1/+1
Remove unnecessary comment
2019-03-29Rollup merge of #59394 - mark-i-m:dup-matcher-bindings-2, r=CentrilMazdak Farrokhzad-5/+10
warn -> deny duplicate match bindings This is the next step of https://github.com/rust-lang/rust/issues/57742 r? @Centril - [x] Decide whether to go to deny-by-default or hard error. - My preference is to make this deny-by-default, rather than going straight to a hard error. The CI should fail because I haven't updated the ui test yet. I'll update it when we decide which to do. - [x] Update [test](https://github.com/mark-i-m/rust/blob/c25d6b83441e0c060ee0273193ef27b29e1318cd/src/test/ui/macros/macro-multiple-matcher-bindings.rs) - [ ] ~Crater run~ see https://github.com/rust-lang/rust/pull/59394#issuecomment-477817351
2019-03-28deny duplicate matcher bindings by defaultmark-5/+10
2019-03-25compiletest: make path normalization smarterAndy Russell-5/+5
2019-03-19Rollup merge of #59116 - estebank:comma-sugg, r=petrochenkovMazdak Farrokhzad-6/+22
Be more discerning on when to attempt suggesting a comma in a macro invocation Fix #58796.
2019-03-11Be more discerning on when to attempt suggesting a comma in a macro invocationEsteban Küber-6/+22
2019-03-11Update testsVadim Petrochenkov-222/+222
2019-02-27Rollup merge of #58075 - asettouf:master, r=varkorMazdak Farrokhzad-2/+2
Fix for issue #58050 Hi, a quick PR to mention in the compiler error message that `?` is a macro operator, as according to issue #58050 It passed `python x.py test src/tools/tidy` locally, as well as the recommendation to run `/x.py test src/test/ui --stage 1 --bless`. Let me know if anything else is needed.
2019-02-26Changing error message to reflect changes with the 2018 editionAdonis-2/+2
Signed-off-by: Adonis <adonis.settouf@gmail.com> Update src/libsyntax/ext/tt/quoted.rs Co-Authored-By: asettouf <adonis.settouf@gmail.com> Update src/libsyntax/ext/tt/quoted.rs Co-Authored-By: asettouf <adonis.settouf@gmail.com> Update src/libsyntax/ext/tt/quoted.rs Co-Authored-By: asettouf <adonis.settouf@gmail.com> Update src/libsyntax/ext/tt/quoted.rs Co-Authored-By: asettouf <adonis.settouf@gmail.com> Update src/libsyntax/ext/tt/quoted.rs Co-Authored-By: asettouf <adonis.settouf@gmail.com> Update src/libsyntax/ext/tt/quoted.rs Co-Authored-By: asettouf <adonis.settouf@gmail.com> Update src/test/ui/macros/macro-at-most-once-rep-2015-ques-rep.stderr Co-Authored-By: asettouf <adonis.settouf@gmail.com> Update src/test/ui/macros/macro-at-most-once-rep-2015-ques-rep.stderr Co-Authored-By: asettouf <adonis.settouf@gmail.com> Stabilize split_ascii_whitespace Tracking issue FCP to merge: https://github.com/rust-lang/rust/issues/48656#issuecomment-442372750 fix stabilization order of uniform_paths. hir: add HirId to main Hir nodes Fix `std::os::fortanix_sgx::usercalls::raw::UsercallNrs` Fixes https://github.com/fortanix/rust-sgx/issues/88 Update src/libsyntax/ext/tt/quoted.rs Co-Authored-By: asettouf <adonis.settouf@gmail.com> Revert "Merge remote-tracking branch 'upstream/master'" This reverts commit 751f05bd155e2c55d4177fe8211df634faf3a644, reversing changes made to 545a3e62b0cb473108869a61b271bc589afb49da.
2019-02-25Stabilize `unrestricted_attribute_tokens`Vadim Petrochenkov-3/+1
2019-02-25Restrict value in key-value attributes to literalsVadim Petrochenkov-5/+5
2019-02-07update testMark Mansi-23/+27
2019-02-07Make it an incompatibility lint for nowMark Mansi-46/+35
2019-02-07add a testmark-0/+69
2019-02-07fix existing testsmark-24/+24
2019-01-27add typo suggestion to unknown attribute errorAndy Russell-1/+1
2019-01-13Implement basic input validation for built-in attributesVadim Petrochenkov-0/+13
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