diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-02-17 23:51:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-17 23:51:16 +0100 |
| commit | 91e5384fc0d4b7babc360dca12c5a9d88332f13b (patch) | |
| tree | c1c5d50bc96f0ada0f2491c7eaa94997c5861f37 /library/std/src/sys/unix/stack_overflow.rs | |
| parent | d2232506629b3de71db97694889928bf91330566 (diff) | |
| parent | aee1e59e6f00876a881e9d8c2ff00e0f11f896eb (diff) | |
| download | rust-91e5384fc0d4b7babc360dca12c5a9d88332f13b.tar.gz rust-91e5384fc0d4b7babc360dca12c5a9d88332f13b.zip | |
Rollup merge of #81869 - mark-i-m:leading-vert, r=petrochenkov
Simplify pattern grammar, improve or-pattern diagnostics This implements the change under FCP in https://github.com/rust-lang/rust/issues/81415. It allows nested or-patterns to contain a leading `|`, simplifying the [grammar for patterns](https://github.com/rust-lang/reference/pull/957/files?short_path=cc629f1#diff-cc629f15712821139bc706c63b3845ab59a008e2a998e08ffad42e3aebcbcbe2). Along the way, we also improve the diagnostics around a few specially-handled cases, such as using `||` instead of `|`, using or-patterns in fn params, including the leading `|` in the pattern span, etc. r? `@petrochenkov`
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
