Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAutomatically verify that derive() lists are alphabetically ordered #… #18179
Conversation
highfive
commented
Aug 21, 2017
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @wafflespeanut (or someone else) soon. |
highfive
commented
Aug 21, 2017
|
Heads up! This PR modifies the following files:
|
| @@ -493,6 +493,18 @@ def check_rust(file_name, lines): | |||
| line = merged_lines + line | |||
| merged_lines = '' | |||
|
|
|||
| # derive traits should be alphabetically ordered | |||
| if line.startswith("#[derive"): | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Wow, we have a lot of prior violations of this rule. |
|
@jdm
|
|
@davidcl |
|
If the tidy derive is fully agreed by other contributors, I could also fix the existing codebase accordingly.
|
|
CC @nox |
|
Nice! |
| const _ as usize } , 32usize , concat ! ( | ||
| "Alignment of field: " , stringify ! ( nsAutoString ) , | ||
| "::" , stringify ! ( mStorage ) )); | ||
| pub type nsAutoStringN_self_type = u8; |
This comment has been minimized.
This comment has been minimized.
jdm
Aug 22, 2017
Member
Ooh, we should exclude this directory from these changes. This is generated code that's out of our control.
This comment has been minimized.
This comment has been minimized.
|
Also, merge commits are not accepted. Please rebase your PR against the master branch instead. |
|
There's a new tidy failure from rebasing, and this as well:
|
|
Rather, travis reports a bunch of errors that look like incorrect rebasing. |
|
This looks great! Let's squash the three commits you mentioned together, too. |
| @@ -76,9 +76,85 @@ struct DocumentCascadeData { | |||
| precomputed_pseudo_element_decls: PerPseudoElementMap<Vec<ApplicableDeclarationBlock>>, | |||
| } | |||
|
|
|||
| impl DocumentCascadeData { | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
davidcl
Aug 23, 2017
Author
Contributor
Thanks, I re-run my upgrade script after the rebase (rather than before) and everything is fine now.
|
|
@bors-servo: r+ |
|
|
|
|
|
|
|
@bors-servo: retry
|
Automatically verify that derive() lists are alphabetically ordered #… <!-- Please describe your changes on the following line: --> Automatically verify that derive() lists are alphabetically ordered #18172 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #18172 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18179) <!-- Reviewable:end -->
|
|
davidcl commentedAug 21, 2017
•
edited by SimonSapin
Automatically verify that derive() lists are alphabetically ordered #18172
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is