about summary refs log tree commit diff
path: root/tests/ui/parser
AgeCommit message (Collapse)AuthorLines
2023-01-20Rollup merge of #106783 - WaffleLapkin:break-my-ident, r=wesleywiserMatthias Krüger-0/+39
Recover labels written as identifiers This adds recovery for `break label expr` and `continue label`, as well as a test for `break label`.
2023-01-19Add double-equals homoglyphclubby789-1/+15
2023-01-17Ensure macros are not affectedEsteban Küber-0/+20
2023-01-17Emit fewer errors on patterns with possible type ascriptionEsteban Küber-29/+6
2023-01-17Teach parser to understand fake anonymous enum syntaxEsteban Küber-18/+154
Parse `-> Ty | OtherTy`. Parse type ascription in top level patterns.
2023-01-14Emit only one nbsp error per fileDavid Tolnay-40/+1
2023-01-14Add more nbsp to unicode-chars testDavid Tolnay-4/+43
2023-01-14Rollup merge of #106566 - clubby789:contiguous-weird-unicode, r=cjgillotMatthias Krüger-1/+17
Emit a single error for contiguous sequences of unknown tokens Closes #106101 On encountering a sequence of identical source characters which are unknown tokens, note the amount of subsequent characters and advance past them silently. The old behavior was to emit an error and 'help' note for every single one. `@rustbot` label +A-diagnostics +A-parser
2023-01-13Recover labels written as identifiersMaybe Waffle-13/+22
2023-01-13Rollup merge of #106608 - compiler-errors:missing-generics-verbose, r=estebankYuki Okushi-9/+3
Render missing generics suggestion verbosely It's a bit easier to read like this, especially ones that are appending new generics onto an existing list, like ": `, T`" which render somewhat poorly inline. Also don't suggest `dyn` as a type parameter to add, even if technically that's valid in edition 2015.
2023-01-13Auto merge of #106004 - fee1-dead-contrib:const-closures, r=oli-obkbors-3/+3
Const closures cc https://github.com/rust-lang/rust/issues/106003
2023-01-12Don't suggest dyn as parameter to addMichael Goulet-15/+0
2023-01-12Render missing generics suggestion verboselyMichael Goulet-9/+18
2023-01-12Add a test for recovery of unticked labelsMaybe Waffle-0/+30
2023-01-12parse const closuresDeadbeef-3/+3
2023-01-12Auto merge of #106537 - ↵bors-4/+117
fmease:recover-where-clause-before-tuple-struct-body, r=estebank Recover from where clauses placed before tuple struct bodies Open to any suggestions regarding the phrasing of the diagnostic. Fixes #100790. `@rustbot` label A-diagnostics r? diagnostics
2023-01-12Emit a single error for contiguous sequences of Unicode homoglyphsclubby789-1/+17
2023-01-11parser: recover from where clauses placed before tuple struct bodiesLeón Orell Valerian Liehr-4/+117
2023-01-11Detect struct literal needing parenthesesEsteban Küber-0/+26
Fix #82051.
2023-01-11Move /src/test to /testsAlbert Larsan-0/+26706