Skip to content

Conversation

petrochenkov
Copy link
Contributor

The commit "Do not convert attributes into MetaItems for printing" fixes #62628.

Other commits fix regressions from abandoning MetaItems, and make formatting for attributes, macro calls, macro definitions and other delimited token groups better and more consistent.

r? @Mark-Simulacrum

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 14, 2019
@rust-highfive

This comment has been minimized.

@@ -703,6 +703,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target=pp::Printer> + std::ops::DerefM
&mut self,
path: &ast::Path,
has_bang: bool,
ident: Option<ast::Ident>,
tts: TokenStream,
delim: MacDelimiter,
span: Span,
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we could take ast::Mac as an argument here? It looks like that would at least somewhat cut down on the arguments to this function -- path, delim, tts, and span are all in ast::Mac. But I'm not sure if it'd actually be an improvement :/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With macro support it's even further from ast::Mac now.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I think it's probably not worth the attempt to do something yet -- definitely something for a future refactor I think.

@Mark-Simulacrum
Copy link
Member

r=me with Azure passing

@petrochenkov
Copy link
Contributor Author

@bors r=Mark-Simulacrum

@bors
Copy link
Collaborator

bors commented Jul 14, 2019

📌 Commit 8574d0644443bfecf9b39f538a972d996a66c449 has been approved by Mark-Simulacrum

@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 Jul 14, 2019
@bors
Copy link
Collaborator

bors commented Jul 14, 2019

☔ The latest upstream changes (presumably #62638) made this pull request unmergeable. Please resolve the merge conflicts.

@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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 14, 2019
@petrochenkov
Copy link
Contributor Author

@bors r=Mark-Simulacrum

@bors
Copy link
Collaborator

bors commented Jul 15, 2019

📌 Commit 0cdd18d has been approved by Mark-Simulacrum

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 15, 2019
@bors
Copy link
Collaborator

bors commented Jul 15, 2019

⌛ Testing commit 0cdd18d with merge 92b0f52...

bors added a commit that referenced this pull request Jul 15, 2019
pprust: Improve pretty-printing of delimited token groups

The commit "Do not convert attributes into `MetaItem`s for printing" fixes #62628.

Other commits fix regressions from abandoning `MetaItem`s, and make formatting for attributes, macro calls, macro definitions and other delimited token groups better and more consistent.

r? @Mark-Simulacrum
@bors
Copy link
Collaborator

bors commented Jul 15, 2019

☀️ Test successful - checks-azure, checks-travis, status-appveyor
Approved by: Mark-Simulacrum
Pushing 92b0f52 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jul 15, 2019
@bors bors merged commit 0cdd18d into rust-lang:master Jul 15, 2019
@rust-highfive
Copy link
Contributor

📣 Toolstate changed by #62667!

Tested on commit 92b0f52.
Direct link to PR: #62667

💔 rls on linux: test-pass → test-fail (cc @Xanewok, @rust-lang/infra).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: 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.

Pretty-printing/tokenization of final has changed to r#final
4 participants