Skip to content

Rustfmt layout crate - #21509

Merged
bors-servo merged 1 commit into
servo:masterfrom
pyfisch:layout-fmt
Sep 1, 2018
Merged

bors-servo merged 1 commit into
servo:masterfrom
pyfisch:layout-fmt

Conversation

@pyfisch

@pyfisch pyfisch commented Aug 24, 2018 •

Copy link
Copy Markdown
Contributor

Part of #21373


This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @emilio: components/layout/wrapper.rs, components/layout/table_rowgroup.rs, components/layout/table_wrapper.rs, components/layout/block.rs, components/layout/table_row.rs and 29 more

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 24, 2018
@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

layout_el: <N::ConcreteThreadSafeLayoutNode as ThreadSafeLayoutNode>::ConcreteThreadSafeLayoutElement,
layout_root: &mut Flow,
requested_node: N,
longhand_id: LonghandId) -> String {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Rustfmt really struggled here. It wants to format the line as longhand_id: LonghandId) -> String{ without any indentation. I manually formatted it so both rustfmt and tidy accept it.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@pyfisch

pyfisch commented Aug 24, 2018

Copy link
Copy Markdown
Contributor Author

r? @jdm

@highfive highfive assigned jdm and unassigned paulrouget Aug 24, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

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

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Aug 24, 2018
@jdm

jdm commented Aug 25, 2018

Copy link
Copy Markdown
Member

Note to self: continue reviewing starting from components/layout/table.rs.

@jdm jdm mentioned this pull request Aug 25, 2018
53 tasks done
@jdm

jdm commented Aug 31, 2018

Copy link
Copy Markdown
Member

This is good to merge once it's rebased.
@bors-servo delegate+

@bors-servo

Copy link
Copy Markdown
Contributor

✌️ @pyfisch can now approve this pull request

@jdm jdm removed the S-awaiting-review There is new code that needs to be reviewed. label Aug 31, 2018
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 1, 2018
@pyfisch

pyfisch commented Sep 1, 2018

Copy link
Copy Markdown
Contributor Author

Rebased. I apparently have updated rustfmt in the meantime. Therefore the formatting is slightly different in a few places. I checked all changes.

There a two kinds of changes. A short method call is placed on the same line as }).

-            })
-            .collect();
+            }).collect();

The other change is done in only two or three places and splits a comparison across multiple lines which I think looks odd.

-                .visibility != Visibility::Visible
+                .visibility !=
+                Visibility::Visible

@bors-servo r=jdm

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 349047b has been approved by jdm

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. S-needs-rebase There are merge conflict errors. labels Sep 1, 2018
@jdm

jdm commented Sep 1, 2018

Copy link
Copy Markdown
Member

Thanks for the summary!

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 349047b with merge 8f5a9be...

bors-servo pushed a commit that referenced this pull request Sep 1, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, android-x86, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev
Approved by: jdm
Pushing 8f5a9be to master...

@bors-servo
bors-servo merged commit 349047b into servo:master Sep 1, 2018
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Sep 1, 2018
@bors-servo bors-servo mentioned this pull request Sep 1, 2018
3 tasks done
@pyfisch
pyfisch deleted the layout-fmt branch September 1, 2018 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants