mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Upgrade to rustc 1.3.0-dev (fddfd089b 2015-07-10)
This commit is contained in:
parent
64751b8eef
commit
83d2a11d86
21 changed files with 260 additions and 152 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue