Skip to content

Allow declaring existential types inside blocks - #52645

Merged
bors merged 1 commit into
rust-lang:masterfrom
oli-obk:existential_in_fn_body
Jul 25, 2018
Merged

Allow declaring existential types inside blocks#52645
bors merged 1 commit into
rust-lang:masterfrom
oli-obk:existential_in_fn_body

Conversation

@oli-obk

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 Jul 23, 2018
@rust-highfive

This comment has been minimized.

@dtolnaydtolnay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice! Thanks for the quick fix.

@dtolnay

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Jul 23, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit 58758c5de691ff528a4053b84ef7b89f4b71724c has been approved by dtolnay

@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 Jul 23, 2018
Comment threadsrc/libsyntax/parse/parser.rs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why check if the next token is an ident rather than checking if it is the keyword type?

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.

because I got confused and panicked by beating the problem with a shovel?

For real: I didn't find a token::Type and decided "oh checking for the concrete identifier is too hard"... all while i did that before the &&...

I'll fix it asap

@oli-obk
oli-obkforce-pushed the existential_in_fn_body branch from 58758c5 to 2e33a55CompareJuly 24, 2018 08:08
@oli-obk

Copy link
Copy Markdown
ContributorAuthor

@bors r=dtolnay rollup

@bors

bors commented Jul 24, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit 2e33a55 has been approved by dtolnay

Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Jul 24, 2018
…tolnay
Allow declaring existential types inside blocks
fixesrust-lang#52631
r? @dtolnay
bors added a commit that referenced this pull request Jul 25, 2018
Rollup of 7 pull requests
Successful merges:
- #52391 (Add unaligned volatile intrinsics)
- #52402 (impl PartialEq+Eq for BuildHasherDefault)
- #52645 (Allow declaring existential types inside blocks)
- #52656 (Stablize Redox Unix Sockets)
- #52658 (Prefer `Option::map`/etc over `match` wherever it improves clarity)
- #52668 (clarify pointer offset function safety concerns)
- #52677 (Release notes: add some missing 1.28 libs stabilization)
Failed merges:
r? @ghost
@bors
bors merged commit 2e33a55 into rust-lang:masterJul 25, 2018
@oli-obk
oli-obk deleted the existential_in_fn_body branch June 15, 2020 15:28
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.

Fails to parse existential type in statement position

5 participants

@oli-obk@rust-highfive@dtolnay@bors@cramertj