diff options
Diffstat (limited to 'components/script/dom/bindings/trace.rs')
-rw-r--r-- | components/script/dom/bindings/trace.rs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs index 43e9814242e..b03255cd986 100644 --- a/components/script/dom/bindings/trace.rs +++ b/components/script/dom/bindings/trace.rs @@ -359,9 +359,16 @@ pub struct RootedTraceableSet { set: Vec<TraceableInfo> } -/// TLV Holds a set of JSTraceables that need to be rooted -thread_local!(pub static ROOTED_TRACEABLES: Rc<RefCell<RootedTraceableSet>> = - Rc::new(RefCell::new(RootedTraceableSet::new()))); +#[allow(missing_docs)] // FIXME +mod dummy { // Attributes don’t apply through the macro. + use std::rc::Rc; + use std::cell::RefCell; + use super::RootedTraceableSet; + /// TLV Holds a set of JSTraceables that need to be rooted + thread_local!(pub static ROOTED_TRACEABLES: Rc<RefCell<RootedTraceableSet>> = + Rc::new(RefCell::new(RootedTraceableSet::new()))); +} +pub use self::dummy::ROOTED_TRACEABLES; impl RootedTraceableSet { fn new() -> RootedTraceableSet { |