rust/tests/ui/pattern
bors 5fe5543502 Auto merge of #124661 - RalfJung:only-structural-consts-in-patterns, r=pnkfelix
Turn remaining non-structural-const-in-pattern lints into hard errors

This completes the implementation of https://github.com/rust-lang/rust/issues/120362 by turning our remaining future-compat lints into hard errors: indirect_structural_match and pointer_structural_match.

They have been future-compat lints for a while (indirect_structural_match for many years, pointer_structural_match since Rust 1.75 (released Dec 28, 2023)), and have shown up in dependency breakage reports since Rust 1.78 (just released on May 2, 2024). I don't expect a lot of code will still depend on them, but we will of course do a crater run.

A lot of cleanup is now possible in const_to_pat, but that is deferred to a later PR.

Fixes https://github.com/rust-lang/rust/issues/70861
2024-05-26 07:55:47 +00:00
..
auxiliary Match ergonomics 2024: migration lint 2024-05-12 11:13:33 -04:00
bindings-after-at Auto merge of #119650 - chenyukang:yukang-fix-118596-ref-mut, r=wesleywiser 2024-04-25 08:52:19 +00:00
deref-patterns Test or-patterns inside deref patterns 2024-04-20 16:04:06 +02:00
move-ref-patterns Suggest ref mut for pattern matching assignment 2024-04-25 04:54:25 +08:00
usefulness Auto merge of #124661 - RalfJung:only-structural-consts-in-patterns, r=pnkfelix 2024-05-26 07:55:47 +00:00
by-move-pattern-binding.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
by-move-pattern-binding.stderr Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
byte-string-inference.rs
complexity_limit.rs
complexity_limit.stderr
feature-gate-mut_preserve_binding_mode_2024.rs Rename feature gate 2024-04-15 23:27:21 -04:00
feature-gate-mut_preserve_binding_mode_2024.stderr Rename feature gate 2024-04-15 23:27:21 -04:00
fn-in-pat.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
fn-in-pat.stderr Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
for-loop-bad-item.rs
for-loop-bad-item.stderr
ignore-all-the-things.rs
inc-range-pat.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
incorrect-placement-of-pattern-modifiers.fixed
incorrect-placement-of-pattern-modifiers.rs
incorrect-placement-of-pattern-modifiers.stderr
integer-range-binding.rs
issue-6449.rs
issue-8351-1.rs
issue-8351-2.rs
issue-10392.rs
issue-11577.rs
issue-12582.rs
issue-14221.rs
issue-14221.stderr
issue-15080.rs
issue-17718-patterns.rs
issue-17718-patterns.stderr
issue-22546.rs
issue-22546.stderr
issue-27320.rs
issue-28992-empty.rs
issue-28992-empty.stderr
issue-52240.rs
issue-52240.stderr
issue-66270-pat-struct-parser-recovery.rs
issue-66270-pat-struct-parser-recovery.stderr
issue-67037-pat-tup-scrut-ty-diff-less-fields.rs
issue-67037-pat-tup-scrut-ty-diff-less-fields.stderr
issue-67776-match-same-name-enum-variant-refs.rs
issue-67776-match-same-name-enum-variant-refs.stderr
issue-68393-let-pat-assoc-constant.rs
issue-68393-let-pat-assoc-constant.stderr
issue-72565.rs
issue-72565.stderr
issue-72574-1.rs
issue-72574-1.stderr
issue-72574-2.rs
issue-72574-2.stderr
issue-74539.rs
issue-74539.stderr
issue-74702.rs
issue-74702.stderr
issue-74954.rs
issue-80186-mut-binding-help-suggestion.rs
issue-80186-mut-binding-help-suggestion.stderr
issue-88074-pat-range-type-inference-err.rs
issue-88074-pat-range-type-inference-err.stderr
issue-88074-pat-range-type-inference.rs
issue-92074-macro-ice.rs
issue-92074-macro-ice.stderr Change wording 2024-04-29 14:53:38 +02:00
issue-94866.rs
issue-94866.stderr
issue-95878.rs
issue-95878.stderr
issue-106552.rs
issue-106552.stderr
issue-106862.fixed
issue-106862.rs
issue-106862.stderr
issue-110508.rs
issue-115599.rs
issue-115599.stderr
issue-117626.rs
match_ergonomics_2024.fixed Match ergonomics 2024: migration lint 2024-05-12 11:13:33 -04:00
match_ergonomics_2024.rs Match ergonomics 2024: migration lint 2024-05-12 11:13:33 -04:00
match_ergonomics_2024.stderr Match ergonomics 2024: migration lint 2024-05-12 11:13:33 -04:00
mut_preserve_binding_mode_2021.rs Fix tests 2024-04-15 23:27:22 -04:00
mut_preserve_binding_mode_2021.stderr Fix tests 2024-04-15 23:27:22 -04:00
mut_preserve_binding_mode_2024.rs Fix tests 2024-04-15 23:27:22 -04:00
mut-ref-mut-2021.rs Feature gate 2024-03-27 11:20:28 -04:00
mut-ref-mut-2021.stderr Suggest ref mut for pattern matching assignment 2024-04-25 04:54:25 +08:00
no-match-tuple-variant-self-ctor.rs Validate that we're only matching on unit struct for path pattern 2024-03-22 20:53:42 -04:00
no-match-tuple-variant-self-ctor.struct_.stderr Validate that we're only matching on unit struct for path pattern 2024-03-22 20:53:42 -04:00
no-match-tuple-variant-self-ctor.tuple.stderr Validate that we're only matching on unit struct for path pattern 2024-03-22 20:53:42 -04:00
no-patterns-in-args-2.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
no-patterns-in-args-2.stderr Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
no-patterns-in-args.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
no-patterns-in-args.stderr Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
non-constant-in-const-path.rs
non-constant-in-const-path.stderr
non-structural-match-types.rs
non-structural-match-types.stderr
pat-shadow-in-nested-binding.rs
pat-shadow-in-nested-binding.stderr
pat-struct-field-expr-has-type.rs
pat-struct-field-expr-has-type.stderr
pat-tuple-bad-type.rs
pat-tuple-bad-type.stderr
pat-tuple-field-count-cross.rs
pat-tuple-field-count-cross.stderr
pat-tuple-overfield.rs
pat-tuple-overfield.stderr
pat-tuple-underfield.rs
pat-tuple-underfield.stderr
pat-type-err-formal-param.rs
pat-type-err-formal-param.stderr
pat-type-err-let-stmt.rs
pat-type-err-let-stmt.stderr
patkind-litrange-no-expr.rs
patkind-litrange-no-expr.stderr
patkind-ref-binding-issue-114896.fixed
patkind-ref-binding-issue-114896.rs
patkind-ref-binding-issue-114896.stderr
patkind-ref-binding-issue-122415.fixed
patkind-ref-binding-issue-122415.rs
patkind-ref-binding-issue-122415.stderr
pattern-bad-ref-box-order.fixed
pattern-bad-ref-box-order.rs
pattern-bad-ref-box-order.stderr
pattern-binding-disambiguation.rs
pattern-binding-disambiguation.stderr
pattern-error-continue.rs
pattern-error-continue.stderr
pattern-ident-path-generics.rs
pattern-ident-path-generics.stderr
pattern-tyvar-2.rs
pattern-tyvar-2.stderr
pattern-tyvar.rs
pattern-tyvar.stderr
range-pattern-meant-to-be-slice-rest-pattern.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
range-pattern-meant-to-be-slice-rest-pattern.stderr Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
rest-pat-semantic-disallowed.rs
rest-pat-semantic-disallowed.stderr
rest-pat-syntactic.rs
rest-pat-syntactic.stderr
size-and-align.rs
skipped-ref-pats-issue-125058.rs rustc_hir_typeck: Account for skipped_ref_pats in expr_use_visitor 2024-05-13 18:36:49 -04:00
skipped-ref-pats-issue-125058.stderr rustc_hir_typeck: Account for skipped_ref_pats in expr_use_visitor 2024-05-13 18:36:49 -04:00
slice-array-infer.rs
slice-pattern-refutable.rs
slice-pattern-refutable.stderr
slice-patterns-ambiguity.rs
slice-patterns-ambiguity.stderr
slice-patterns-irrefutable.rs
slice-patterns-irrefutable.stderr
slice-patterns-nested.rs
suggest-adding-appropriate-missing-pattern-excluding-comments.fixed
suggest-adding-appropriate-missing-pattern-excluding-comments.rs
suggest-adding-appropriate-missing-pattern-excluding-comments.stderr