aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-07-21 23:24:42 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-07-22 00:01:26 +0530
commitfda3eb632703a3b11fe586516fe03c5e05a73a45 (patch)
treea14de65b9a482565e8ba871f48a856147a6be87d /components/script/script_task.rs
parent511e3337fb3b1839ac00039d56ef6861762ed5d1 (diff)
downloadservo-fda3eb632703a3b11fe586516fe03c5e05a73a45.tar.gz
servo-fda3eb632703a3b11fe586516fe03c5e05a73a45.zip
Make struct part of unrooted_must_root handle type parameters
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index 5b91fe8c5ac..51937350df2 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -287,6 +287,8 @@ impl Drop for StackRootTLS {
/// Information for an entire page. Pages are top-level browsing contexts and can contain multiple
/// frames.
#[derive(JSTraceable)]
+// ScriptTask instances are rooted on creation, so this is okay
+#[allow(unrooted_must_root)]
pub struct ScriptTask {
/// A handle to the information pertaining to page layout
page: DOMRefCell<Option<Rc<Page>>>,