about summary refs log tree commit diff
path: root/tests/ui/pattern
AgeCommit message (Expand)AuthorLines
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
2024-04-20Lower deref patterns to MIRNadrieril-6/+174
2024-04-15Fix testsJules Bertholet-4/+5
2024-04-15Rename feature gateJules Bertholet-12/+12
2024-04-15Temporarily remove future compatibility label from migration lintJules Bertholet-8/+2
2024-04-15Migration lintJules Bertholet-0/+53
2024-04-15Match ergonomics 2024: `mut` doesn't reset binding modeJules Bertholet-0/+106
2024-04-11Mention when the type of the moved value doesn't implement `Clone`Esteban Küber-0/+10
2024-04-11Fix accuracy of `T: Clone` check in suggestionEsteban Küber-6/+0
2024-04-11Account for unops when suggesting cloningEsteban Küber-2/+3
2024-04-11Suggest `.clone()` when moved while borrowedEsteban Küber-0/+5
2024-04-01Fix union handling in exhaustivenessNadrieril-11/+12
2024-03-31Add testsNadrieril-0/+68
2024-03-27Feature gateJules Bertholet-0/+125
2024-03-25Require DerefMut if deref pattern has nested ref mut bindingMichael Goulet-0/+37
2024-03-22Validate that we're only matching on unit struct for path patternMichael Goulet-0/+65
2024-03-21Implement macro-based deref!() syntax for deref patternsMichael Goulet-4/+4
2024-03-20Add barest-bones deref patternsNadrieril-0/+31
2024-03-19Fix incorrect mutable suggestion information for binding in ref pattern.surechen-1/+47
2024-03-18Rollup merge of #121823 - Nadrieril:never-witnesses, r=compiler-errorsMatthias Krüger-187/+880
2024-03-15Rollup merge of #122254 - estebank:issue-48677, r=oli-obkMatthias Krüger-33/+33
2024-03-13Tweak wordingEsteban Küber-33/+33
2024-03-13Remove `MaybeInfiniteInt::JustAfterMax`Nadrieril-4/+4
2024-03-13Rollup merge of #121908 - Nadrieril:dynamic-variant-collection, r=matthewjasperMatthias Krüger-0/+14
2024-03-12Don't suggest an arm when suggesting a never patternNadrieril-15/+15
2024-03-12Suggest never pattern instead of `_` for empty typesNadrieril-57/+57
2024-03-12Run the empty_types tests with never_patterns tooNadrieril-187/+880