Skip to content

parser: recover on &'lifetime mut? $pat. - #67269

Merged
bors merged 1 commit into
rust-lang:masterfrom
Centril:recover-lt-deref-pat
Dec 13, 2019
Merged

parser: recover on &'lifetime mut? $pat.#67269
bors merged 1 commit into
rust-lang:masterfrom
Centril:recover-lt-deref-pat

Conversation

@Centril

Copy link
Copy Markdown
Contributor

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 13, 2019
@CentrilCentril changed the title parser: recover on &'lifetime mut $pat.parser: recover on &'lifetime mut? $pat.Dec 13, 2019
Comment threadsrc/librustc_parse/parser/pat.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like something we should handle better :-/

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the solution here is to make the type ascription optional syntactically. This would allow us to handle this in e.g. resolve or typeck to handle this well without any hacks.

@estebank

Copy link
Copy Markdown
Contributor

r=me once green and with nitpick addressed

@Centril
Centrilforce-pushed the recover-lt-deref-pat branch from faf669e to 45c1e38CompareDecember 13, 2019 01:36
@Centril

Copy link
Copy Markdown
ContributorAuthor

@bors r=estebank rollup

@bors

bors commented Dec 13, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 45c1e38 has been approved by estebank

@borsbors 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 Dec 13, 2019
Centril added a commit to Centril/rust that referenced this pull request Dec 13, 2019
…ebank
parser: recover on `&'lifetime mut? $pat`.
r? @estebank
@CentrilCentril mentioned this pull request Dec 13, 2019
bors added a commit that referenced this pull request Dec 13, 2019
Rollup of 6 pull requests
Successful merges:
- #66341 (Match `VecDeque::extend` to `Vec::extend_desugared`)
- #67243 (LinkedList: drop remaining items when drop panics)
- #67247 (Don't suggest wrong snippet in closure)
- #67250 (Remove the `DelimSpan` from `NamedMatch::MatchedSeq`.)
- #67251 (Require `allow_internal_unstable` for stable min_const_fn using unsta…)
- #67269 (parser: recover on `&'lifetime mut? $pat`.)
Failed merges:
r? @ghost
@bors
bors merged commit 45c1e38 into rust-lang:masterDec 13, 2019
@Centril
Centril deleted the recover-lt-deref-pat branch December 13, 2019 11:29
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@Centril@estebank@bors@rust-highfive