diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-12-21 18:23:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-21 18:23:26 -0500 |
commit | 3e77a0ae09daf28c0a102add5a198bff08befe31 (patch) | |
tree | 78e98f47fb57023286bacb62f86a86a6fbbad7bc /components/script/dom/servoparser/html.rs | |
parent | 19ca0b30bd1420e40558c7ef9ec796c6cc78d6b3 (diff) | |
parent | cd9195056c7a83b44ed439ef607b94ed4824431d (diff) | |
download | servo-3e77a0ae09daf28c0a102add5a198bff08befe31.tar.gz servo-3e77a0ae09daf28c0a102add5a198bff08befe31.zip |
Auto merge of #25354 - lberrymage:dom-domroot-lint-check, r=jdm
Add &DomRoot<T> lint check
So far, the lint check code appears to work as intended. However, some trait implementations require modification to pass the lint check and I'm not sure how to fix these. Commit 92cf5d5 attempts to correct one of the implementations, but fails to compile with error:
```
--> components/script/dom/servoparser/xml.rs:76:36
|
76 | tree_builder.trace_handles(&tracer);
| ^^^^^^^ expected struct `dom::bindings::root::Dom`, found struct `dom::node::Node`
|
= note: expected struct `dom::bindings::root::Dom<dom::node::Node>`
found struct `dom::node::Node`
= note: required for the cast to the object type `dyn html5ever::tree_builder::Tracer<Handle = dom::bindings::root::Dom<dom::node::Node>>`
```
I've tried to debug further but to no avail. I also don't want to mangle too much existing code unnecessarily. Any help is appreciated.
<!-- 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
- [X] `./mach test-tidy` does not report any errors
`./mach test-tidy --all` does, and some are directly related to this PR
- [ ] These changes fix #25342
The fix is a WIP
<!-- Either: -->
- [X] There are tests for these changes
Note that I will clean up the commit history before the final PR.
<!-- 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. -->
Diffstat (limited to 'components/script/dom/servoparser/html.rs')
0 files changed, 0 insertions, 0 deletions