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
make dom_struct derive HeapSizeOf #7361
Conversation
☔ The latest upstream changes (presumably #6770) made this pull request unmergeable. Please resolve the merge conflicts. |
d2e001c
to
9d0d415
Compare
@@ -22,8 +22,10 @@ use std::rc::Rc; | |||
pub struct TreeWalker { | |||
reflector_: Reflector, | |||
root_node: JS<Node>, | |||
#[ignore_heap_size_of = "Defined in std"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neither of those are defined in std. lgtm otherwise.
@@ -207,6 +207,7 @@ impl MutHeapJSVal { | |||
/// `JS<T>`. | |||
#[must_root] | |||
#[derive(JSTraceable)] | |||
#[derive(HeapSizeOf)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added derive for MutHeap
thanks @Ms2ger, updated with anotations |
Thank you for your PR! @bors-servo r+ |
📌 Commit fd87c8c has been approved by |
make dom_struct derive HeapSizeOf closes #7357 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7361) <!-- Reviewable:end -->
closes #7357