summary refs log tree commit diff
path: root/tests/ui/pattern
AgeCommit message (Expand)AuthorLines
2024-09-23Parser: better error messages for `@` in struct patternsPavel Grigorenko-0/+83
2024-09-13Add a machine-applicable suggestion to "unreachable pattern"Nadrieril-84/+433
2024-09-11Revert warning empty patterns as unreachableNadrieril-427/+57
2024-08-26Don't make pattern nonterminals match statement nonterminalsMichael Goulet-0/+19
2024-08-20Move the "matches no value" note to be a span labelNadrieril-248/+124
2024-08-19Cap the number of patterns pointed to by the lintNadrieril-9/+52
2024-08-19Add a note with a link to explain empty typesNadrieril-17/+148
2024-08-19Reword the "unreachable pattern" explanationsNadrieril-392/+392
2024-08-13Remove a no-longer-true `assert`Nadrieril-95/+132
2024-08-10Test that 0/unknown-length arrays are nonemptyNadrieril-47/+144
2024-08-10Update testsNadrieril-451/+612
2024-08-10Stabilize `min_exhaustive_patterns`Nadrieril-1/+0
2024-08-03Revert "Rollup merge of #126618 - mu001999-contrib:dead/enhance, r=pnkfelix"Michael Goulet-1/+11
2024-07-26Peel off explicit (or implicit) deref before suggesting clone on move error i...Michael Goulet-16/+0
2024-07-24Improve "covered_by_many" errorNadrieril-21/+102
2024-07-24Explain why a given pattern is considered unreachableNadrieril-122/+824
2024-07-21Explain why we require `_` for empty patternsNadrieril-0/+10
2024-07-18avoid creating an Instance only to immediately disassemble it againRalf Jung-41/+0
2024-07-12Make parse error suggestions verbose and fix spansEsteban Küber-6/+32
2024-07-11report pat no field error no recoverd struct variantyukang-0/+60
2024-07-04More accurate mutability suggestionEsteban Küber-4/+10
2024-07-04Better span for "make binding mutable" suggestionEsteban Küber-8/+8
2024-06-27Tighten spans for async blocksMichael Goulet-1/+1
2024-06-26Rollup merge of #126925 - surechen:fix_125631, r=compiler-errorsMatthias Krüger-0/+5
2024-06-25Rollup merge of #126618 - mu001999-contrib:dead/enhance, r=pnkfelixMatthias Krüger-11/+1
2024-06-25Change E0369 diagnostic give note information for foreign items.surechen-0/+5
2024-06-23Replace `f16` and `f128` pattern matching stubs with real implementationsTrevor Gross-23/+97
2024-06-18Mark assoc tys live only if the trait is livemu001999-11/+1
2024-06-13Replace some `Option<Diag>` with `Result<(), Diag>`Oli Scherer-0/+38
2024-06-13Avoid follow-up errors on erroneous patternsOli Scherer-0/+91
2024-06-06Rollup merge of #125168 - Jules-Bertholet:match-ergonomics-2024-align-with-rf...Matthias Krüger-49/+13
2024-05-26Auto merge of #124661 - RalfJung:only-structural-consts-in-patterns, r=pnkfelixbors-176/+24
2024-05-20Move 100 entries from tests/ui into subdirsJubilee Young-0/+205
2024-05-15"No `ref mut` behind `&`" on all editionsJules Bertholet-0/+9
2024-05-15Gate implicit mutable by-reference bindings behind `mut ref`Jules Bertholet-49/+4
2024-05-13`rustc_hir_typeck`: Account for `skipped_ref_pats` in `expr_use_visitor`Jules Bertholet-0/+42
2024-05-12Match ergonomics 2024: migration lintJules Bertholet-47/+223
2024-05-03turn pointer_structural_match into a hard errorRalf Jung-164/+24
2024-05-03remove IndirectStructuralMatch lint, emit the usual hard error insteadRalf Jung-12/+0
2024-05-02Stabilize exclusive_rangeRoss Smyth-112/+93
2024-04-29Change wordingest31-3/+3
2024-04-28Add a note to the ArbitraryExpressionInPattern errorest31-0/+3
2024-04-25Auto merge of #119650 - chenyukang:yukang-fix-118596-ref-mut, r=wesleywiserbors-16/+40
2024-04-24Mention when type parameter could be `Clone`Esteban Küber-2/+8
2024-04-25Suggest ref mut for pattern matching assignmentyukang-16/+40
2024-04-20Test or-patterns inside deref patternsNadrieril-1/+13
2024-04-20Use deep fake borrows for deref patternsNadrieril-0/+26
2024-04-20Address closure-related reviewNadrieril-0/+21
2024-04-20Allow mutable bindings inside deref patternsNadrieril-0/+15
2024-04-20Don't fake borrow inside a deref patternNadrieril-2/+2