syntax: recover trailing |
in or-patterns by Centril · Pull Request #64887 · rust-lang/rust (original) (raw)
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation7 Commits1 Checks0 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
Fixes #64879.
For example (this also shows that we are sensitive to the typo ||
):
error: a trailing `|` is not allowed in an or-pattern
--> $DIR/remove-leading-vert.rs:33:11
|
LL | A || => {}
| - ^^ help: remove the `||`
| |
| while parsing this or-pattern starting here
|
= note: alternatives in or-patterns are separated with `|`, not `||`
r? @estebank
Added token::Colon
as well for type ascription and improved the test coverage.
📌 Commit 3eba6c1 has been approved by estebank
bors added S-waiting-on-bors
Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
labels
Centril added a commit to Centril/rust that referenced this pull request
…tebank
syntax: recover trailing |
in or-patterns
Fixes rust-lang#64879.
For example (this also shows that we are sensitive to the typo ||
):
error: a trailing `|` is not allowed in an or-pattern
--> $DIR/remove-leading-vert.rs:33:11
|
LL | A || => {}
| - ^^ help: remove the `||`
| |
| while parsing this or-pattern starting here
|
= note: alternatives in or-patterns are separated with `|`, not `||`
r? @estebank
Centril added a commit to Centril/rust that referenced this pull request
…tebank
syntax: recover trailing |
in or-patterns
Fixes rust-lang#64879.
For example (this also shows that we are sensitive to the typo ||
):
error: a trailing `|` is not allowed in an or-pattern
--> $DIR/remove-leading-vert.rs:33:11
|
LL | A || => {}
| - ^^ help: remove the `||`
| |
| while parsing this or-pattern starting here
|
= note: alternatives in or-patterns are separated with `|`, not `||`
r? @estebank
bors added a commit that referenced this pull request
Rollup of 10 pull requests
Successful merges:
- #63674 (syntax: Support modern attribute syntax in the
meta
matcher) - #63931 (Stabilize macros in some more positions)
- #64887 (syntax: recover trailing
|
in or-patterns) - #64895 (async/await: improve not-send errors)
- #64896 (Remove legacy grammar)
- #64907 (A small amount of tidying-up factored out from PR #64648)
- #64928 (Add tests for some issues)
- #64930 (Silence unreachable code lint from await desugaring)
- #64935 (Improve code clarity)
- #64937 (Deduplicate closure type errors)
Failed merges:
r? @ghost
Centril deleted the recover-trailing-vert branch
Labels
`#![feature(or_patterns)]`
Status: Waiting on bors to run and complete tests. Bors will change the label on completion.