about summary refs log tree commit diff
path: root/src/test/ui/proc-macro
AgeCommit message (Collapse)AuthorLines
2019-04-22Remove double trailing newlinesvarkor-2/+0
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-4/+4
2019-04-16this panic occurs not just on Windows, normalize it away everywhereRalf Jung-6/+6
2019-04-15normalize away some Windows-only panic printingRalf Jung-3/+15
2019-04-11Reword tracking issue noteEsteban Küber-33/+33
2019-04-10Tweak unstable diagnostic outputEsteban Küber-33/+66
2019-04-05Include trailing comma in multiline Debug representationDavid Tolnay-80/+80
This commit changes the behavior of Formatter::debug_struct, debug_tuple, debug_list, debug_set, and debug_map to render trailing commas in {:#?} mode, which is the dominant style in modern Rust code. Before: Language { name: "Rust", trailing_commas: false } After: Language { name: "Rust", trailing_commas: true, }
2019-03-25Auto merge of #59258 - euclio:suggestions-filter-crate, r=oli-obkbors-1/+1
filter suggestions from extern prelude Fixes #59027. Modifies the candidate gathering code to call `filter_fn` on extern crates, which causes them to be filtered out when looking for a type.
2019-03-23Mark duplicate import removal suggestion tool onlyEsteban Küber-1/+0
2019-03-23Tweak unnecessary import suggestionEsteban Küber-8/+6
2019-03-18filter suggestions from extern preludeAndy Russell-1/+1
2019-03-16syntax: Introduce `Ident::can_be_raw`Vadim Petrochenkov-1/+1
2019-03-16syntax_ext: Validate `#[proc_macro_derive]` input betterVadim Petrochenkov-5/+17
Tweak some error wording
2019-03-16syntax: Do not accidentally treat multi-segment meta-items as single-segmentVadim Petrochenkov-3/+15
2019-03-16Add tests for malformed input in `#[proc_macro_derive]`Vadim Petrochenkov-84/+118
2019-03-14Moved issue tests to subdirs and normalised names.Alexander Regueiro-2/+2
2019-03-11Update testsVadim Petrochenkov-133/+133
2019-02-25Stabilize `unrestricted_attribute_tokens`Vadim Petrochenkov-12/+5
2019-02-25Restrict value in key-value attributes to literalsVadim Petrochenkov-3/+3
2019-02-05Auto merge of #57973 - davidtwco:issue-52891, r=estebankbors-9/+8
Add suggestion for duplicated import. Fixes #52891. This PR adds a suggestion when a import is duplicated (ie. the same name is used twice trying to import the same thing) to remove the second import.
2019-01-31Add suggestion for duplicated import.David Wood-9/+8
This commit adds a suggestion when a import is duplicated (ie. the same name is used twice trying to import the same thing) to remove the second import.
2019-01-28Rollup merge of #57904 - euclio:attribute-typos, r=davidtwcoMazdak Farrokhzad-1/+1
add typo suggestion to unknown attribute error Provides a suggestion using Levenshtein distance to suggest built-in attributes and attribute macros. Fixes #49270.
2019-01-28Unused variable suggestions on all patterns.David Wood-1/+1
This commit extends existing suggestions to prefix unused variable bindings in match arms with an underscore so that it applies to all patterns in a match arm.
2019-01-27add typo suggestion to unknown attribute errorAndy Russell-1/+1
2019-01-18Point at return type when appropriateEsteban Küber-0/+3
2019-01-16Auto merge of #57321 - petrochenkov:atokens, r=nikomatsakisbors-32/+32
Implement basic input validation for built-in attributes Correct top-level shape (`#[attr]` vs `#[attr(...)]` vs `#[attr = ...]`) is enforced for built-in attributes, built-in attributes must also fit into the "meta-item" syntax (aka the "classic attribute syntax"). For some subset of attributes (found by crater run), errors are lowered to deprecation warnings. NOTE: This PR previously included https://github.com/rust-lang/rust/pull/57367 as well.
2019-01-14Rollup merge of #57477 - euclio:clarify-lev-suggestion, r=zackmdavisMazdak Farrokhzad-5/+6
clarify resolve typo suggestion Include the kind of the binding that we're suggesting, and use a structured suggestion. Fixes #53445.
2019-01-13Address review commentsVadim Petrochenkov-2/+2
2019-01-13Implement basic input validation for built-in attributesVadim Petrochenkov-32/+32
2019-01-12Fix a hole in generic parameter import future-proofingVadim Petrochenkov-4/+33
Add some tests for buggy derive helpers
2019-01-09clarify resolve typo suggestionAndy Russell-5/+6
Include the kind of the binding that we're suggesting, and use a structured suggestion.
2018-12-31Improve type mismatch error messagesYuning Zhang-1/+1
Replace "integral variable" with "integer" and replace "floating-point variable" with "floating-point number" to make the message less confusing.
2018-12-28Auto merge of #57155 - petrochenkov:dcrate3, r=dtolnaybors-0/+113
Resolve `$crate`s for pretty-printing at more appropriate time Doing it in `BuildReducedGraphVisitor` wasn't a good idea, identifiers wasn't actually visited half of the time. As a result some `$crate`s weren't resolved and were therefore pretty-printed as `$crate` literally, which turns into two tokens during re-parsing of the pretty-printed text. Now we are visiting and resolving `$crate` identifiers in an item right before sending that item to a proc macro attribute or derive. Fixes https://github.com/rust-lang/rust/issues/57089
2018-12-28Resolve `$crate`s for pretty-printing at more appropriate timeVadim Petrochenkov-27/+12
2018-12-28Add test demonstrating disintegration of `$crate` into `$` and `crate`Vadim Petrochenkov-0/+128
2018-12-27Fix rebase and more CI failuresVadim Petrochenkov-34/+34
2018-12-27Do not abort compilation if expansion produces errorsVadim Petrochenkov-8/+126
Fix a number of uncovered deficiencies in diagnostics
2018-12-25Remove licensesMark Rousskov-1030/+180
2018-12-20Workaround issues with crate loading during cross-compilationVadim Petrochenkov-3/+9
2018-12-19Do not interpret mismatches from pretty-printed `$crate` as token stream ↵Vadim Petrochenkov-58/+44
invalidation
2018-12-19Reintroduce special pretty-printing for `$crate` when it's necessary for ↵Vadim Petrochenkov-8/+341
proc macros
2018-12-19proc_macro: Accept `$crate` as an identifier if it comes from the compilerVadim Petrochenkov-0/+28
2018-12-09Fix rebase + Add missing `// force-host`Vadim Petrochenkov-3/+4
2018-12-09Move some tests from ui-fulldeps to uiVadim Petrochenkov-0/+43
2018-12-09Move former compile-fail-fulldeps tests to uiVadim Petrochenkov-0/+2150
2018-12-04Update ui testsOliver Scherer-15/+16
2018-11-30tests: use `force-host` and `no-prefer-dynamic` in all proc_macro tests.Eduard-Mihai Burtescu-25/+49
2018-11-30tests: move all proc_macro tests from -fulldeps.Eduard-Mihai Burtescu-0/+2450