Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use `asynch` instead of `r#async` #27303

Merged
merged 1 commit into from Jul 18, 2020
Merged

Conversation

@camelid
Copy link
Contributor

camelid commented Jul 17, 2020

This is a vestige of the transition from 2015 to 2018 edition Rust.
async was added as a keyword in 2018 edition Rust, so cargo fix
changed the variable name here to r#async.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #___ (GitHub issue number if applicable)
  • There are tests for these changes OR
  • These changes do not require tests because this is just an internal name change
This is a vestige of the transition from 2015 to 2018 edition Rust.
`async` was added as a keyword in 2018 edition Rust, so `cargo fix`
changed the variable name here to `r#async`.
@highfive
Copy link

highfive commented Jul 17, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/htmlscriptelement.rs, components/script/script_module.rs, components/script/dom/xmlhttprequest.rs
  • @KiChjang: components/script/dom/htmlscriptelement.rs, components/script/script_module.rs, components/script/dom/xmlhttprequest.rs
@highfive
Copy link

highfive commented Jul 17, 2020

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@camelid
Copy link
Contributor Author

camelid commented Jul 17, 2020

r? @jdm

@highfive highfive assigned jdm and unassigned nox Jul 17, 2020
@camelid
Copy link
Contributor Author

camelid commented Jul 17, 2020

For context, this raw identifier usage was introduced by 45f7199, which was a cargo fix --edition upgrade from 2015 to 2018 edition

@jdm
jdm approved these changes Jul 17, 2020
@jdm
Copy link
Member

jdm commented Jul 17, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Jul 17, 2020

📌 Commit a62a30e has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Jul 17, 2020

Testing commit a62a30e with merge 646acfe...

bors-servo added a commit that referenced this pull request Jul 17, 2020
Use `asynch` instead of `r#async`

<!-- Please describe your changes on the following line: -->
This is a vestige of the transition from 2015 to 2018 edition Rust.
`async` was added as a keyword in 2018 edition Rust, so `cargo fix`
changed the variable name here to `r#async`.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because this is just an internal name change

<!-- 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. -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 17, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Jul 17, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Jul 17, 2020

Testing commit a62a30e with merge 53ffa8a...

bors-servo added a commit that referenced this pull request Jul 17, 2020
Use `asynch` instead of `r#async`

<!-- Please describe your changes on the following line: -->
This is a vestige of the transition from 2015 to 2018 edition Rust.
`async` was added as a keyword in 2018 edition Rust, so `cargo fix`
changed the variable name here to `r#async`.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because this is just an internal name change

<!-- 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. -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 17, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Jul 17, 2020

@camelid
Copy link
Contributor Author

camelid commented Jul 17, 2020

Wow, why so many test failures?

@jdm
Copy link
Member

jdm commented Jul 17, 2020

Because we have a wide variety of relatively infrequent (and a few fairly frequent) intermittent test failures that we endure.

@bors-servo
Copy link
Contributor

bors-servo commented Jul 17, 2020

Testing commit a62a30e with merge 6bd1e71...

bors-servo added a commit that referenced this pull request Jul 17, 2020
Use `asynch` instead of `r#async`

<!-- Please describe your changes on the following line: -->
This is a vestige of the transition from 2015 to 2018 edition Rust.
`async` was added as a keyword in 2018 edition Rust, so `cargo fix`
changed the variable name here to `r#async`.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because this is just an internal name change

<!-- 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. -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 17, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Jul 17, 2020

@camelid
Copy link
Contributor Author

camelid commented Jul 17, 2020

Because we have a wide variety of relatively infrequent (and a few fairly frequent) intermittent test failures that we endure.

Is there any way to fix these other than completely overhauling them?

@jdm
Copy link
Member

jdm commented Jul 17, 2020

I'm not sure what completely overhauling means. Most of the intermittent failures are caused (in my experience) by timing issues or bugs in Servo, rather than problems in the tests. Solving them means being able to reproduce them locally and digging into the underlying cause, or making educated guesses and changing the code and seeing if it helps.

@camelid
Copy link
Contributor Author

camelid commented Jul 17, 2020

Ah, okay. I didn't realize that the intermittent failures are caused by issues with Servo itself

@bors-servo
Copy link
Contributor

bors-servo commented Jul 17, 2020

Testing commit a62a30e with merge ee115df...

bors-servo added a commit that referenced this pull request Jul 17, 2020
Use `asynch` instead of `r#async`

<!-- Please describe your changes on the following line: -->
This is a vestige of the transition from 2015 to 2018 edition Rust.
`async` was added as a keyword in 2018 edition Rust, so `cargo fix`
changed the variable name here to `r#async`.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because this is just an internal name change

<!-- 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. -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 17, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Jul 18, 2020

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Jul 18, 2020

Testing commit a62a30e with merge b63ce28...

@bors-servo
Copy link
Contributor

bors-servo commented Jul 18, 2020

☀️ Test successful - status-taskcluster
Approved by: jdm
Pushing b63ce28 to master...

@bors-servo bors-servo merged commit b63ce28 into servo:master Jul 18, 2020
1 of 2 checks passed
1 of 2 checks passed
Community-TC (pull_request) TaskGroup: failure
Details
homu Test successful
Details
@camelid
Copy link
Contributor Author

camelid commented Jul 18, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.