about summary refs log tree commit diff
path: root/tests/ui/pattern
AgeCommit message (Expand)AuthorLines
2025-01-30Rollup merge of #135434 - dianne:match-2024-for-edition-2024, r=NadrierilMatthias Krüger-303/+1832
2025-01-29Handle all `PatExpr`s in dead code analysisOli Scherer-18/+3
2025-01-29Add regression test showing we don't realize some consts are usedOli Scherer-1/+24
2025-01-27Remove all dead files inside tests/ui/León Orell Valerian Liehr-778/+0
2025-01-21add tests differing between stable and new rules (with errors on new rules)dianne-18/+155
2025-01-21organize old well-typed-edition-2024 testsdianne-85/+100
2025-01-21add a stable edition 2021 revision to pattern typing testsdianne-198/+1103
2025-01-21add more information to old testsdianne-28/+36
2025-01-21minor test cleanupdianne-59/+26
2025-01-20rename tests' revisions to allow testing multiple editionsdianne-93/+93
2025-01-20"structural" ruleset: match against the inherited ref when a reference patter...dianne-62/+61
2025-01-20"structural" ruleset: use the "classic" ruleset's diagnostic and fallback for...dianne-355/+120
2025-01-20"structural" ruleset: account for dbm mutability cap in Deref(EatInner) rulesdianne-12/+106
2025-01-20add more tests where the rulesets disagreedianne-6/+659
2025-01-20remove Rule 3 from `ref_pat_eat_one_layer_2024`dianne-31/+17
2025-01-20Auto merge of #135754 - jieyouxu:rollup-j4q1hpr, r=jieyouxubors-1/+1
2025-01-20Rollup merge of #135237 - dianne:match-2024-cleanup, r=Nadrieril许杰友 Jieyou Xu (Joe)-9/+1150
2025-01-18Emit a single privacy error for multiple fields on the same struct expressionEsteban Küber-1/+1
2025-01-12remove `tests/ui/pattern/no_ref_mut_behind_and.rs`dianne-9/+0
2025-01-12rename and comment the test for "Rule 5"-related mutability errorsdianne-7/+91
2025-01-08Rollup merge of #135222 - estebank:issue-135209, r=compiler-errorsMatthias Krüger-3/+64
2025-01-08reorganize and comment some of the experimental pattern typing testsdianne-497/+529
2025-01-08move the experimental match ergonomics tests to be with the other rfc 3627 testsdianne-0/+1034
2025-01-08Rename PatKind::Lit to ExprOli Scherer-1/+1
2025-01-08modify test to side-step platform-dependent stderr outputEsteban Küber-18/+27
2025-01-08Add check for missing fields in enum variant patternEsteban Küber-3/+20
2025-01-07Ensure that we don't try to access fields on a non-struct pattern type in dia...Esteban Küber-0/+35
2024-12-31Rollup merge of #133486 - dianne:fix-move-error-suggestion, r=estebankTrevor Gross-0/+10
2024-12-19Rollup merge of #134474 - oli-obk:push-yomnkntvzlxw, r=compiler-errors许杰友 Jieyou Xu (Joe)-11/+15
2024-12-18Forbid overwriting types in typeckOli Scherer-11/+15
2024-12-17Add the edition guide link from the match 2024 migration lint to the error as...dianne-0/+8
2024-12-17Improve the pattern migration 2024 migration lint's messagedianne-62/+62
2024-12-17Clarify the match ergonomics 2024 migration lint's outputdianne-150/+203
2024-12-17Rollup merge of #134368 - ehuss:edition-links, r=jieyouxuJacob Pratt-15/+15
2024-12-15Use links to edition guide for edition migrationsEric Huss-15/+15
2024-12-15Use `span_label` as it looks better when we show pattern missing binding in o...Esteban Küber-17/+5
2024-12-13Keep track of patterns that could have introduced a binding, but didn'tEsteban Küber-0/+52
2024-12-08Rollup merge of #133424 - Nadrieril:guard-patterns-parsing, r=fee1-deadMatthias Krüger-2/+22
2024-12-07Address review commentsNadrieril-0/+20
2024-12-04Add additional context for non-sructural type constant used in patternEsteban Küber-9/+17
2024-12-04Specify type kind of constant that can't be used in patternsEsteban Küber-6/+6
2024-12-04Tweak output of some const pattern errorsEsteban Küber-4/+10
2024-12-04Tweak ptr in pattern errorEsteban Küber-16/+32
2024-12-04On `const` pattern errors, point at the `const` item definitionEsteban Küber-0/+33
2024-11-25`add_move_error_suggestions`: use a HIR visitor rather than `SourceMap`dianne-0/+10
2024-11-26tests: remove `//@ pretty-expanded` usages许杰友 Jieyou Xu (Joe)-2/+0
2024-11-24parse guard patternsNadrieril-2/+2
2024-11-23Auto merge of #131859 - chriskrycho:update-trpl, r=onur-ozkanbors-25/+25
2024-11-23Update tests for new TRPL chapter orderChris Krycho-25/+25
2024-11-23Rollup merge of #133286 - jieyouxu:bug-ourselves, r=compiler-errors许杰友 Jieyou Xu (Joe)-0/+36