rust/src/test/ui/or-patterns
bors 29e32120c3 Auto merge of #80100 - mark-i-m:pattORns-2, r=petrochenkov
or_patterns: implement :pat edition-specific behavior

cc #54883 `@joshtriplett`

This PR implements the edition-specific behavior of `:pat` wrt or-patterns, as determined by the crater runs and T-lang consensus in https://github.com/rust-lang/rust/issues/54883#issuecomment-745509090.

I believe this can unblock stabilization of or_patterns.

r? `@petrochenkov`
2020-12-20 04:10:44 +00:00
..
already-bound-name.rs
already-bound-name.stderr
basic-switch.rs
basic-switchint.rs
bindings-runpass-1.rs
bindings-runpass-2.rs
box-patterns.rs
consistent-bindings.rs
const-fn.rs
exhaustiveness-non-exhaustive.rs
exhaustiveness-non-exhaustive.stderr
exhaustiveness-pass.rs
exhaustiveness-unreachable-pattern.rs Merge unreachable subpatterns correctly 2020-12-18 16:21:39 +00:00
exhaustiveness-unreachable-pattern.stderr Merge unreachable subpatterns correctly 2020-12-18 16:21:39 +00:00
feature-gate-or_patterns-leading-for.rs
feature-gate-or_patterns-leading-for.stderr
feature-gate-or_patterns-leading-let.rs
feature-gate-or_patterns-leading-let.stderr
feature-gate-or_patterns.rs
feature-gate-or_patterns.stderr
fn-param-wrap-parens.fixed
fn-param-wrap-parens.rs
fn-param-wrap-parens.stderr
for-loop.rs
if-let-while-let.rs
inconsistent-modes.rs
inconsistent-modes.stderr
issue-64879-trailing-before-guard.rs
issue-64879-trailing-before-guard.stderr
issue-67514-irrefutable-param.rs
issue-68785-irrefutable-param-with-at.rs
issue-69875-should-have-been-expanded-earlier-non-exhaustive.rs
issue-69875-should-have-been-expanded-earlier-non-exhaustive.stderr
issue-69875-should-have-been-expanded-earlier.rs
issue-70413-no-unreachable-pat-and-guard.rs
let-pattern.rs
mismatched-bindings-async-fn.rs
mismatched-bindings-async-fn.stderr
missing-bindings.rs
missing-bindings.stderr
mix-with-wild.rs
multiple-pattern-typo.rs
multiple-pattern-typo.stderr
or-patterns-binding-type-mismatch.rs
or-patterns-binding-type-mismatch.stderr
or-patterns-default-binding-modes.rs
or-patterns-syntactic-fail-2018.rs implement edition-specific :pat behavior for 2015/18 2020-12-19 07:13:36 -06:00
or-patterns-syntactic-fail-2018.stderr implement edition-specific :pat behavior for 2015/18 2020-12-19 07:13:36 -06:00
or-patterns-syntactic-fail.rs implement edition-specific :pat behavior for 2015/18 2020-12-19 07:13:36 -06:00
or-patterns-syntactic-fail.stderr implement edition-specific :pat behavior for 2015/18 2020-12-19 07:13:36 -06:00
or-patterns-syntactic-pass-2021.rs implement edition-specific :pat behavior for 2015/18 2020-12-19 07:13:36 -06:00
or-patterns-syntactic-pass.rs
remove-leading-vert.fixed
remove-leading-vert.rs
remove-leading-vert.stderr
search-via-bindings.rs
slice-patterns.rs
struct-like.rs
while-parsing-this-or-pattern.rs
while-parsing-this-or-pattern.stderr