about summary refs log tree commit diff
path: root/src/test/ui/macros
AgeCommit message (Collapse)AuthorLines
2020-01-09Update testsVadim Petrochenkov-13/+48
2019-12-21Require issue = "none" over issue = "0" in unstable attributesRoss MacArthur-5/+5
2019-12-08Rollup merge of #66325 - BartMassey:master, r=joshtriplettMazdak Farrokhzad-1/+1
Change unused_labels from allow to warn Fixes #66324, making the unused_labels lint warn instead of allow by default. I'm told @rust-lang/lang will need to review this, and perhaps will want to do a crater run.
2019-11-26Bless ui tests for libcore reformatDavid Tolnay-2/+2
2019-11-25Tweak removed feature errorEsteban Küber-6/+2
2019-11-25Tweak duplicate matcher binding errorEsteban Küber-28/+12
2019-11-15Cleaned up unused labelsBart Massey-1/+1
Deleted unused labels from compiler and fixed or allowed unused labels in tests. This patch removes some gratuitous unused labels and turns off the warning for unused labels that are a necessary part of tests. This will permit setting the `unused_labels` lint to `warn`.
2019-11-14Fix ui tests with better error code usageGuillaume Gomez-0/+1
2019-11-10Make error and warning annotations mandatory in UI testsTomasz Miąsko-13/+3
This change makes error and warning annotations mandatory in UI tests. The only exception are tests that use error patterns to match compiler output and don't have any annotations.
2019-11-06Remove "here" from "expected one of X here"Esteban Küber-3/+3
2019-10-29Rollup merge of #65832 - tlively:emscripten-exception-handling, r=alexcrichtonTyler Mandry-1/+1
Re-enable Emscripten's exception handling support Passes LLVM codegen and Emscripten link-time flags for exception handling if and only if the panic strategy is `unwind`. Sets the default panic strategy for Emscripten targets to `unwind`. Re-enables tests that depend on unwinding support for Emscripten, including `should_panic` tests. r? @alexcrichton
2019-10-28Rollup merge of #65640 - estebank:recover-missing-semi, r=CentrilMazdak Farrokhzad-2/+2
Use heuristics to recover parsing of missing `;` - Detect `,` and `:` typos where `;` was intended. - When the next token could have been the start of a new statement, detect a missing semicolon. Fix #48160, fix #44767 (after adding note about statements).
2019-10-28review commentsEsteban Küber-1/+1
2019-10-28Tweak unexpected token wordingEsteban Küber-1/+1
2019-10-27Point at local similarly named element and tweak references to variantsEsteban Küber-2/+7
Point at the span for the definition of ADTs internal to the current crate. Look at the leading char of the ident to determine whether we're expecting a likely fn or any of a fn, a tuple struct or a tuple variant. Turn fn `add_typo_suggestion` into a `Resolver` method.
2019-10-25Re-enable Emscripten's exception handling supportThomas Lively-1/+1
Passes LLVM codegen and Emscripten link-time flags for exception handling if and only if the panic strategy is `unwind`. Sets the default panic strategy for Emscripten targets to `unwind`. Re-enables tests that depend on unwinding support for Emscripten, including `should_panic` tests.
2019-10-24Increase spacing for suggestions in diagnosticsEsteban Küber-0/+11
Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages.
2019-10-16Upgrade Emscripten targets to use upstream LLVM backendThomas Lively-0/+2
- Compatible with Emscripten 1.38.46-upstream or later upstream. - Refactors the Emscripten target spec to share code with other wasm targets. - Replaces the old incorrect wasm32 C call ABI with the correct one, preserving the old one as wasm32_bindgen_compat for wasm-bindgen compatibility. - Updates the varargs ABI used by Emscripten and deletes the old one. - Removes the obsolete wasm32-experimental-emscripten target. - Uses EMCC_CFLAGS on CI to avoid the timeout problems with #63649.
2019-10-15Stabilize proc macros generating `macro_rules` itemsVadim Petrochenkov-5/+4
2019-10-05Revert "Auto merge of #63649 - tlively:emscripten-upstream-upgrade, ↵Tyler Mandry-2/+0
r=alexcrichton" This reverts commit 7870050796e5904a0fc85ecbe6fa6dde1cfe0c91, reversing changes made to 2e7244807a7878f6eca3eb7d97ae9b413aa49014.
2019-10-04Upgrade Emscripten targets to use upstream LLVM backendThomas Lively-0/+2
- Refactors the Emscripten target spec to share code with other wasm targets. - Replaces the incorrect wasm32 C call ABI with the old asmjs version, which is correct for both wasm32 and JS. - Updates the varargs ABI used by Emscripten and deletes the old one. - Removes the obsolete wasm32-experimental-emscripten target. - Temporarily makes Emscripten targets use panic=abort by default because supporting unwinding will require an LLVM patch.
2019-10-01Rollup merge of #63931 - petrochenkov:stabmac, r=CentrilMazdak Farrokhzad-5/+18
Stabilize macros in some more positions - Fn-like macros and attribute macros in `extern` blocks - Fn-like procedural macros in type positions - ~Attribute macros on inline modules~ (moved to https://github.com/rust-lang/rust/pull/64273) Stabilization report: https://github.com/rust-lang/rust/pull/63931#issuecomment-526362396. Closes https://github.com/rust-lang/rust/issues/49476 cc https://github.com/rust-lang/rust/issues/54727
2019-10-01Address review commentsVadim Petrochenkov-0/+11
2019-09-30syntax: Support modern attribute syntax in the `meta` matcherVadim Petrochenkov-6/+0
2019-09-30Stabilize macros in `extern` blocksVadim Petrochenkov-5/+18
Add some tests for macros in extern blocks, remove duplicate tests
2019-09-15resolve: Remove `!` from "cannot find" diagnostics for macrosVadim Petrochenkov-7/+7
2019-09-15resolve: Tweak "cannot find" wording for attributesVadim Petrochenkov-2/+2
2019-09-08Give method not found a primary span labelEsteban Küber-2/+2
2019-08-27proc_macro: Update `Span::def_site` to use the proc macro definition locationVadim Petrochenkov-9/+23
Which is no longer dummy and is available from metadata now.
2019-08-25pprust: Do not print spaces before some tokensVadim Petrochenkov-1/+1
2019-08-22Rollup merge of #63624 - estebank:unreachable-macro, r=petrochenkovMazdak Farrokhzad-0/+8
When declaring a declarative macro in an item it's only accessible inside it Fix #63164. r? @petrochenkov
2019-08-21review commentsEsteban Küber-11/+2
2019-08-21When declaring a declarative macro in an item it's only accessible inside itEsteban Küber-0/+17
2019-08-21expand: Keep the correct current expansion ID for eager expansionsVadim Petrochenkov-0/+3
Solve the problem of `ParentScope` entries for eager expansions not exising in the resolver map by creating them on demand.
2019-08-19Cherry-pick src/test changes with Centril's changessd234678-11/+9
2019-08-17Serialize additional data for procedural macrosAaron Hill-2/+8
Split off from #62855 This PR deerializes the declaration `Span` and attributes for all procedural macros from their underlying function definitions. This allows Rustdoc to properly render doc comments and source links when inlining procedural macros across crates
2019-08-16Rollup merge of #63613 - petrochenkov:stdhyg, r=alexcrichtonMazdak Farrokhzad-1/+1
Hygienize use of built-in macros in the standard library Same as https://github.com/rust-lang/rust/pull/61629, but for built-in macros. Closes https://github.com/rust-lang/rust/issues/48781 r? @alexcrichton
2019-08-15Hygienize use of built-in macros in the standard libraryVadim Petrochenkov-1/+1
2019-08-15Group all ui tests and move to abi #62593Kevin Per-62/+0
2019-08-10diagnostics: Describe crate root modules in `DefKind::Mod` as "crate"Vadim Petrochenkov-1/+1
2019-08-10Give built-in macros stable addresses in the standard libraryVadim Petrochenkov-0/+157
2019-08-09Rollup merge of #62672 - lzutao:deprecated-try-macro, r=CentrilMazdak Farrokhzad-0/+2
Deprecate `try!` macro Replaces #62077 Fixes rust-lang/rust-clippy#1361 Fixes #61000
2019-08-09Allow deprecated try macro in test cratesLzu Tao-3/+2
2019-08-09Deprecate `try!` macroBO41-0/+3
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> Co-Authored-By: Oliver Middleton <olliemail27@gmail.com>
2019-08-05Don't recommend `extern crate` syntaxKornel-2/+2
2019-08-03Rollup merge of #62954 - ia0:fix_typo_span, r=CentrilMazdak Farrokhzad-22/+22
Fix typo in Delimited::open_tt
2019-08-01Add check-pass test for #63102.Robert Bartlensky-0/+8
2019-07-28Remove lint annotations in specific crates that are already enforced by ↵Vadim Petrochenkov-4/+2
rustbuild Remove some random unnecessary lint `allow`s
2019-07-27tests: Move run-pass tests with naming conflicts to uiVadim Petrochenkov-0/+765
2019-07-27tests: Move run-pass tests without naming conflicts to uiVadim Petrochenkov-0/+2079