about summary refs log tree commit diff
path: root/src/test/ui/proc-macro
AgeCommit message (Collapse)AuthorLines
2020-04-28Rollup merge of #71340 - Valloric:more-check-pass, r=nikomatsakisDylan DPC-1/+1
Moving more build-pass tests to check-pass One or two tests became build-pass without the FIXME because they really needed build-pass (were failing without it). Helps with #62277 --- <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/rust-lang/rust/71340) <!-- Reviewable:end -->
2020-04-26Stabilize `Span::mixed_site`Vadim Petrochenkov-1/+0
2020-04-25Add a test for `Span::resolved_at` and `Span::located_at`Vadim Petrochenkov-0/+65
2020-04-23Moving more build-pass tests to check-passVal Markovic-1/+1
One or two tests became build-pass without the FIXME because they really needed build-pass (were failing without it). Helps with #62277
2020-04-21proc_macro::is_available()David Tolnay-0/+31
2020-04-11rustc: Add a warning count upon completionRoccoDev-2/+6
2020-04-02tests: remove ignore directives from tests that mention core/alloc/std spans.Eduard-Mihai Burtescu-43/+35
2020-03-24resolve: Remove `rustc_attrs` as a standalone feature gateVadim Petrochenkov-3/+74
Now it only gates specific built-in attributes
2020-03-24expand: address review commentsMazdak Farrokhzad-13/+14
2020-03-24defatalize ProcMacroDerive::expandMazdak Farrokhzad-13/+36
Also remove ExtCtxt::struct_span_fatal.
2020-03-24defatalize BangProcMacro::expandMazdak Farrokhzad-6/+25
2020-03-23Rollup merge of #70300 - aleksator:66636_reword_unused_variable_warning, ↵Mazdak Farrokhzad-1/+1
r=Dylan-DPC Reword unused variable warning Fixes #66636
2020-03-23Rollup merge of #70233 - petrochenkov:superproc, r=ecstatic-morseMazdak Farrokhzad-0/+39
resolve: Do not resolve visibilities on proc macro definitions twice Fixes https://github.com/rust-lang/rust/issues/68921
2020-03-23Rollup merge of #69942 - estebank:sized-verbose-sugg, r=matthewjasperMazdak Farrokhzad-3/+3
Increase verbosity when suggesting subtle code changes Do not suggest changes that are actually quite small inline, to minimize the likelihood of confusion. Fix #69243.
2020-03-23Reword unused variable warningAlex Tokarev-1/+1
2020-03-23resolve: Do not resolve visibilities on proc macro definitions twiceVadim Petrochenkov-0/+39
2020-03-23Rollup merge of #70227 - LeSeulArtichaut:typo-def, r=CentrilMazdak Farrokhzad-12/+8
Only display definition when suggesting a typo Closes #70206 r? @Centril
2020-03-22Normalize wording of privacy access labelsEsteban Küber-1/+1
2020-03-22Add span label to primary error spanEsteban Küber-2/+2
2020-03-22proc_macro_harness: Use item header spans for errorsVadim Petrochenkov-26/+12
2020-03-21Add a test for out-of-line module passed through a proc macroVadim Petrochenkov-0/+13
2020-03-21Bless testsLeSeulArtichaut-12/+8
2020-03-18Rollup merge of #70075 - GuillaumeGomez:fix-repr-display, r=petrochenkovMazdak Farrokhzad-11/+11
Fix repr pretty display Fixes #70027. r? @varkor
2020-03-17Update pretty testsGuillaume Gomez-11/+11
2020-03-17Auto merge of #69519 - 12101111:remove-proc-macro-check, r=nagisabors-0/+16
Don't use static crt by default when build proc-macro Don't check value of `crt-static` when build proc-macro crates, since they are always built dynamically. For more information, see https://github.com/rust-lang/cargo/issues/7563#issuecomment-591965320 I hope this will fix issues about compiling `proc_macro` crates on musl host without bring more issues. Fix https://github.com/rust-lang/cargo/issues/7563
2020-03-17Ignore wasm3212101111-0/+1
2020-03-11fix expand-to-unstable testRalf Jung-1/+1
2020-03-10span-api-tests: leave FIXMEMazdak Farrokhzad-0/+2
2020-03-10--bless some testsMazdak Farrokhzad-135/+36
2020-03-10adjust span-api-tests.rsMazdak Farrokhzad-2/+2
2020-03-09run crt-static test on all target12101111-1/+0
2020-03-08override flags from compiletest12101111-1/+2
2020-03-03Remove trailing whitespace.12101111-1/+1
2020-03-03Only run this test on musl12101111-2/+2
2020-03-03Don't use static crt by default when build proc-macro.12101111-0/+15
2020-03-01Make `rustc_attrs` tracking issue NoneYuki Okushi-1/+0
2020-02-24syntax: Remove `Nt(Impl,Trait,Foreign)Item`Vadim Petrochenkov-0/+14
2020-02-17Add a test for proc macro generating `$ IDENT`Vadim Petrochenkov-0/+35
2020-02-09--bless --compare-mode=nllMatthias Prechtl-20/+20
2020-02-06rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros.Eduard-Mihai Burtescu-1/+69
2020-02-06rustc_errors: hide "in this macro invocation" when redundant, more explicitly.Eduard-Mihai Burtescu-32/+14
2020-02-06rustc: rename -Zexternal-macro-backtrace to -Zmacro-backtrace.Eduard-Mihai Burtescu-1/+1
2020-02-05review commentsEsteban Küber-2/+2
2020-02-05Suggest `'r` instead of `'lifetime`Esteban Küber-2/+2
2020-02-02Change expansion error to be non-fatalDavid-2/+12
Changes the error handler for inner attributes that replace the root with a non-module. Previously it would emit a fatal error. It now emits an empty expasion and a non-fatal error like the existing handler for a failed expansion.
2020-02-01Add tests for issue 59191David Ross-0/+31
2020-01-31Auto merge of #68080 - varkor:declared-here, r=petrochenkovbors-2/+2
Address inconsistency in using "is" with "declared here" "is" was generally used for NLL diagnostics, but not other diagnostics. Using "is" makes the diagnostics sound more natural and readable, so it seems sensible to commit to them throughout. r? @Centril
2020-01-26Suggest defining type parameter when appropriateEsteban Küber-0/+12
``` error[E0412]: cannot find type `T` in this scope --> file.rs:3:12 | 3 | impl Trait<T> for Struct {} | - ^ not found in this scope | | | help: you might be missing a type parameter: `<T>` ``` Fix #64298.
2020-01-24Normalise notes with the/isvarkor-2/+2
2020-01-19review commentsEsteban Küber-1/+1