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 improve or-pattern type consistency diagnostics 2020-02-25 05:30:43 +01:00
basic-switch.rs
basic-switchint.rs
bindings-runpass-1.rs
bindings-runpass-2.rs
box-patterns.rs test(pattern): add tests for combinations of pattern features 2020-03-04 01:17:41 -06:00
consistent-bindings.rs
const-fn.rs Update tests 2020-06-28 10:08:10 -07:00
exhaustiveness-non-exhaustive.rs Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
exhaustiveness-non-exhaustive.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
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 --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
feature-gate-or_patterns-leading-let.rs
feature-gate-or_patterns-leading-let.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
feature-gate-or_patterns.rs
feature-gate-or_patterns.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
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 resolve, inconsistent binding mode: tweak wording. 2020-03-04 03:58:52 +01:00
inconsistent-modes.stderr resolve, inconsistent binding mode: tweak wording. 2020-03-04 03:58:52 +01:00
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 Matrix::push: recursively expand or-patterns 2020-03-10 17:46:19 +01:00
issue-69875-should-have-been-expanded-earlier-non-exhaustive.stderr Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
issue-69875-should-have-been-expanded-earlier.rs Matrix::push: recursively expand or-patterns 2020-03-10 17:46:19 +01:00
issue-70413-no-unreachable-pat-and-guard.rs Add tests based on issue #70372 comments 2020-03-26 12:34:36 -03:00
let-pattern.rs
mismatched-bindings-async-fn.rs Fix ICE for broken or-pattern in async fn 2020-04-19 18:17:31 +01:00
mismatched-bindings-async-fn.stderr resolve: Sort E0408 errors by Symbol str 2020-06-04 16:00:31 +01:00
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 pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
or-patterns-default-binding-modes.rs or_patterns: test default binding modes 2020-02-05 10:33:15 +01:00
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 Fix #71977 2020-07-04 21:21:07 +01:00
slice-patterns.rs fix tidy error 2020-03-04 02:05:23 -06:00
struct-like.rs
while-parsing-this-or-pattern.rs
while-parsing-this-or-pattern.stderr