rust/tests/ui/rfcs/rfc-1445-restrict-constants-in-patterns
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
..
rfc1445 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
allow-use-behind-cousin-variant.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cant-hide-behind-direct-struct-embedded.rs remove StructuralEq trait 2024-01-24 07:56:23 +01:00
cant-hide-behind-direct-struct-embedded.stderr remove StructuralEq trait 2024-01-24 07:56:23 +01:00
cant-hide-behind-direct-struct-param.rs remove IndirectStructuralMatch lint, emit the usual hard error instead 2024-05-03 15:56:59 +02:00
cant-hide-behind-direct-struct-param.stderr remove IndirectStructuralMatch lint, emit the usual hard error instead 2024-05-03 15:56:59 +02:00
cant-hide-behind-doubly-indirect-embedded.rs remove IndirectStructuralMatch lint, emit the usual hard error instead 2024-05-03 15:56:59 +02:00
cant-hide-behind-doubly-indirect-embedded.stderr remove IndirectStructuralMatch lint, emit the usual hard error instead 2024-05-03 15:56:59 +02:00
cant-hide-behind-doubly-indirect-param.rs remove IndirectStructuralMatch lint, emit the usual hard error instead 2024-05-03 15:56:59 +02:00
cant-hide-behind-doubly-indirect-param.stderr remove IndirectStructuralMatch lint, emit the usual hard error instead 2024-05-03 15:56:59 +02:00
cant-hide-behind-indirect-struct-embedded.rs remove IndirectStructuralMatch lint, emit the usual hard error instead 2024-05-03 15:56:59 +02:00
cant-hide-behind-indirect-struct-embedded.stderr remove IndirectStructuralMatch lint, emit the usual hard error instead 2024-05-03 15:56:59 +02:00
cant-hide-behind-indirect-struct-param.rs remove IndirectStructuralMatch lint, emit the usual hard error instead 2024-05-03 15:56:59 +02:00
cant-hide-behind-indirect-struct-param.stderr remove IndirectStructuralMatch lint, emit the usual hard error instead 2024-05-03 15:56:59 +02:00
feature-gate.no_gate.stderr remove StructuralEq trait 2024-01-24 07:56:23 +01:00
feature-gate.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
feature-gate.with_gate.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
fn-ptr-is-not-structurally-matchable.rs turn pointer_structural_match into a hard error 2024-05-03 15:56:59 +02:00
fn-ptr-is-not-structurally-matchable.stderr turn pointer_structural_match into a hard error 2024-05-03 15:56:59 +02:00
issue-6804-nan-match.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
issue-6804-nan-match.stderr Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
issue-61188-match-slice-forbidden-without-eq.rs remove StructuralEq trait 2024-01-24 07:56:23 +01:00
issue-61188-match-slice-forbidden-without-eq.stderr remove StructuralEq trait 2024-01-24 07:56:23 +01:00
issue-62307-match-ref-ref-forbidden-without-eq.rs remove IndirectStructuralMatch lint, emit the usual hard error instead 2024-05-03 15:56:59 +02:00
issue-62307-match-ref-ref-forbidden-without-eq.stderr remove IndirectStructuralMatch lint, emit the usual hard error instead 2024-05-03 15:56:59 +02:00
issue-63479-match-fnptr.rs turn pointer_structural_match into a hard error 2024-05-03 15:56:59 +02:00
issue-63479-match-fnptr.stderr turn pointer_structural_match into a hard error 2024-05-03 15:56:59 +02:00
match-empty-array-allowed-without-eq-issue-62336.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
match-requires-both-partialeq-and-eq.rs remove StructuralEq trait 2024-01-24 07:56:23 +01:00
match-requires-both-partialeq-and-eq.stderr remove StructuralEq trait 2024-01-24 07:56:23 +01:00
phantom-data-is-structurally-matchable.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00