about summary refs log tree commit diff
path: root/src/test/ui/proc-macro
AgeCommit message (Collapse)AuthorLines
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
2020-01-19When encountering an expected named lifetime and none are present, suggest ↵Esteban Küber-1/+7
adding one
2020-01-16resolve: Say "import" when reporting private importsVadim Petrochenkov-4/+4
2020-01-16resolve: Point at the private item definitions in privacy errorsVadim Petrochenkov-1/+7
2020-01-10Ignore platforms that can't point to stdEsteban Küber-36/+59
2020-01-10Use `def_span` to minimize definition span to first line when possibleEsteban Küber-25/+17
2020-01-10Point at the span for the definition of crate foreign ADTsEsteban Küber-8/+56
2020-01-09Update testsVadim Petrochenkov-18/+60
2020-01-03tweak wording of mismatched delimiter errorsAndy Russell-3/+3
2019-12-28Stabilize attribute macros on inline modulesVadim Petrochenkov-65/+54
2019-12-03Emit coercion suggestions in more placesAaron Hill-0/+5
Fixes #66910 We have several different kinds of suggestions we can try to make when type coercion fails. However, we were previously only emitting these suggestions from `demand_coerce_diag`. This resulted in the compiler failing to emit applicable suggestions in several different cases, such as when the implicit return value of a function had the wrong type. This commit adds a new `emit_coerce_suggestions` method, which tries to emit a number of related suggestions. This method is called from both `demand_coerce_diag` and `CoerceMany::coerce_inner`, which covers a much wider range of cases than before. We now suggest using `.await` in more cases where it is applicable, among other improvements.
2019-12-02syntax: Use `ast::MacArgs` for attributesVadim Petrochenkov-2/+2
2019-11-21Point at type in `let` assignment on type errorsEsteban Küber-9/+27
2019-11-21Auto merge of #66389 - estebank:type-err-labels, r=petrochenkovbors-60/+21
Specific labels when referring to "expected" and "found" types
2019-11-20Rollup merge of #66060 - traxys:test_65401, r=michaelwoeristerMazdak Farrokhzad-2/+2
Making ICEs and test them in incremental This adds: - A way to make the compiler ICE - A way to check for ICE in `cfail` tests with `should-ice` - A regression test for issue #65401 I am not sure the attribute added `should-ice` is the best for this job
2019-11-18fix rebaseEsteban Küber-12/+3
2019-11-19resolve: Give derive helpers highest priority during resolutionVadim Petrochenkov-39/+31
2019-11-18Surround types with backticks in type errorsEsteban Küber-14/+14
2019-11-18Remove E0308 note when primary label has all infoEsteban Küber-39/+9
2019-11-18review comments: tweak prefix stringsEsteban Küber-4/+4
2019-11-18Specific labels when referring to "expected" and "found" typesEsteban Küber-21/+21