Skip to content

suggest ; on expr mac!() which is good as stmt mac!() - #70434

Merged
bors merged 1 commit into
rust-lang:masterfrom
Centril:fix-34421
Mar 28, 2020
Merged

bors merged 1 commit into
rust-lang:masterfrom
Centril:fix-34421

Conversation

@Centril

@Centril Centril commented Mar 26, 2020

Copy link
Copy Markdown
Contributor

Fixes #34421 by implementing @jseyfried's suggestion in #34421 (comment).

r? @petrochenkov

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 26, 2020
Comment thread src/librustc_expand/mbe/macro_rules.rs Resolved
Comment thread src/librustc_expand/mbe/macro_rules.rs Resolved
@petrochenkov

Copy link
Copy Markdown
Contributor

I'm ok with this if perf is unaffected, but I don't care to much about fixing this because the example should compile successfully in the token-based expansion model.

r? @estebank

@Centril

Centril commented Mar 26, 2020

Copy link
Copy Markdown
Contributor Author

@bors try @rust-timer queue

@rust-timer

Copy link
Copy Markdown
Collaborator

Awaiting bors try build completion

@bors

bors commented Mar 26, 2020

Copy link
Copy Markdown
Collaborator

⌛ Trying commit cbfa75e139d9c434fd31b2e59ac118e0b9040b46 with merge d12c42b713ed6844182c19063db4f6da6dbc2dc0...

@bors

bors commented Mar 26, 2020

Copy link
Copy Markdown
Collaborator

💔 Test failed - checks-azure

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 26, 2020
@Centril

Centril commented Mar 26, 2020

Copy link
Copy Markdown
Contributor Author

@bors try @rust-timer queue

@rust-timer

Copy link
Copy Markdown
Collaborator

Awaiting bors try build completion

@bors

bors commented Mar 26, 2020

Copy link
Copy Markdown
Collaborator

⌛ Trying commit cbfa75e139d9c434fd31b2e59ac118e0b9040b46 with merge a04f461d8ae91c3ec42f8743523878d8e5174b23...

@bors

bors commented Mar 26, 2020

Copy link
Copy Markdown
Collaborator

💔 Test failed - checks-azure

@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors retry

@bors

bors commented Mar 26, 2020

Copy link
Copy Markdown
Collaborator

⌛ Trying commit cbfa75e139d9c434fd31b2e59ac118e0b9040b46 with merge 73876af7e044d371e84684916fa2df78bb8d7a00...

@bors

bors commented Mar 26, 2020

Copy link
Copy Markdown
Collaborator

☀️ Try build successful - checks-azure
Build commit: 73876af7e044d371e84684916fa2df78bb8d7a00 (73876af7e044d371e84684916fa2df78bb8d7a00)

@rust-timer

Copy link
Copy Markdown
Collaborator

Queued 73876af7e044d371e84684916fa2df78bb8d7a00 with parent 2fbb075, future comparison URL.

@Centril

Centril commented Mar 27, 2020

Copy link
Copy Markdown
Contributor Author

Perfbot suggests this was a perf win but I suspect that's bogus. At least it's not a regression, so I'll make the other requested changes. :)

@Centril

Centril commented Mar 27, 2020

Copy link
Copy Markdown
Contributor Author

@estebank I've addressed your comments. :)

@Centril Centril removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Mar 27, 2020
@Centril Centril added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 27, 2020
@estebank

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Mar 27, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 6c643a0 has been approved by estebank

@bors 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 Mar 27, 2020
Centril added a commit to Centril/rust that referenced this pull request Mar 27, 2020
suggest `;` on expr `mac!()` which is good as stmt `mac!()`

Fixes rust-lang#34421 by implementing @jseyfried's suggestion in rust-lang#34421 (comment).

r? @petrochenkov
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 28, 2020
Rollup of 5 pull requests

Successful merges:

 - rust-lang#70345 (Remove `no_integrated_as` mode.)
 - rust-lang#70434 (suggest `;` on expr `mac!()` which is good as stmt `mac!()`)
 - rust-lang#70457 (non-exhastive diagnostic: add note re. scrutinee type)
 - rust-lang#70478 (Refactor type_of for constants)
 - rust-lang#70480 (clarify hir_id <-> node_id method names)

Failed merges:

r? @ghost
@bors
bors merged commit cfe1e33 into rust-lang:master Mar 28, 2020
@Centril
Centril deleted the fix-34421 branch March 28, 2020 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

7 participants