Auto merge of #27303 - camelid:async-to-asynch, r=jdm

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. -->
This commit is contained in:
bors-servo 2020-07-17 22:51:12 -04:00 committed by GitHub
commit b63ce282aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 15 deletions

View file

@ -865,14 +865,14 @@ impl ModuleOwner {
}
};
let r#async = script
let asynch = script
.root()
.upcast::<Element>()
.has_attribute(&local_name!("async"));
if !r#async && (&*script.root()).get_parser_inserted() {
if !asynch && (&*script.root()).get_parser_inserted() {
document.deferred_script_loaded(&*script.root(), load);
} else if !r#async && !(&*script.root()).get_non_blocking() {
} else if !asynch && !(&*script.root()).get_non_blocking() {
document.asap_in_order_script_loaded(&*script.root(), load);
} else {
document.asap_script_loaded(&*script.root(), load);