diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2015-04-26 23:31:40 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-04-28 04:35:58 +0530 |
commit | 369a568264f8c9095681f2fee5c6bad03f312cbc (patch) | |
tree | 981a01b544e1c3f2a57fb003ade762093e981aa1 /components/script/dom/bindings/js.rs | |
parent | dcb0a0eab629a5f77e306fdab94c14cc3559c100 (diff) | |
download | servo-369a568264f8c9095681f2fee5c6bad03f312cbc.tar.gz servo-369a568264f8c9095681f2fee5c6bad03f312cbc.zip |
Make RootedVec/RootCollection #[no_move]; improve code (fixes #5737)
Diffstat (limited to 'components/script/dom/bindings/js.rs')
-rw-r--r-- | components/script/dom/bindings/js.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs index 347f32a266e..a6dc495fc04 100644 --- a/components/script/dom/bindings/js.rs +++ b/components/script/dom/bindings/js.rs @@ -577,6 +577,7 @@ impl<T: Assignable<U>, U: Reflectable> TemporaryPushable<T> for Vec<JS<U>> { /// /// See also [*Exact Stack Rooting - Storing a GCPointer on the CStack*] /// (https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Internals/GC/Exact_Stack_Rooting). +#[no_move] pub struct RootCollection { roots: UnsafeCell<RootedVec<*mut JSObject>>, } |