diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2015-11-03 11:19:52 -0800 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2015-11-07 21:17:24 -0800 |
commit | 1a50fce67c840123447c9949c9692f4bb5828e5d (patch) | |
tree | 43576152ca427142e751abb6de042690499ee638 /components/script/dom/bindings/js.rs | |
parent | db1163b1eceb5fef6463c4425e99d974a85a50a8 (diff) | |
download | servo-1a50fce67c840123447c9949c9692f4bb5828e5d.tar.gz servo-1a50fce67c840123447c9949c9692f4bb5828e5d.zip |
Clean up some code related to #[no_move].
The patch makes RootCollection a bit safer by making the StackRootTLS hold
it in place.
The use of no_move in CodeGenRust was leftover from when roots couldn't
be moved.
Diffstat (limited to 'components/script/dom/bindings/js.rs')
-rw-r--r-- | components/script/dom/bindings/js.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs index c78399189ab..f5d53423c6d 100644 --- a/components/script/dom/bindings/js.rs +++ b/components/script/dom/bindings/js.rs @@ -453,7 +453,6 @@ impl<T: Reflectable> OptionalRootedReference<T> for Option<Option<Root<T>>> { /// /// 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<Vec<*const Reflector>>, } |