aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/js.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-07-21 21:09:18 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-07-22 00:00:14 +0530
commitf6f0a7e4aaaa3c1ec7aca3876b0b0fe9e5fca9aa (patch)
tree1affaf3d3bff8cc1ef9dc3c2090fc88bb3dfa698 /components/script/dom/bindings/js.rs
parent126f5ae8f0a1041aa881b5b8d9396d0957b16036 (diff)
downloadservo-f6f0a7e4aaaa3c1ec7aca3876b0b0fe9e5fca9aa.tar.gz
servo-f6f0a7e4aaaa3c1ec7aca3876b0b0fe9e5fca9aa.zip
Make stmt part of unrooted_must_root handle type parameters (fixes #6651)
Diffstat (limited to 'components/script/dom/bindings/js.rs')
-rw-r--r--components/script/dom/bindings/js.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs
index 36a3ce19198..a4f21a2a43d 100644
--- a/components/script/dom/bindings/js.rs
+++ b/components/script/dom/bindings/js.rs
@@ -382,6 +382,7 @@ pub unsafe fn trace_roots(tracer: *mut JSTracer) {
/// are additive, so this object's destruction will not invalidate other roots
/// for the same JS value. `Root`s cannot outlive the associated
/// `RootCollection` object.
+#[allow_unrooted_interior]
pub struct Root<T: Reflectable> {
/// Reference to rooted value that must not outlive this container
ptr: NonZero<*const T>,