Skip to content

Commit c63f564

Browse files
committed
Merge pull request servo#51 from mystor/std-sync
Switch to using std::sync instead of libsync
2 parents 40f25a1 + bf93b93 commit c63f564

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

macros/src/atom/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use syntax::ext::base::{ExtCtxt, MacResult, MacExpr};
1515
use syntax::parse::token::{get_ident, InternedString, Ident, Literal, Lit};
1616

1717
use std::iter::Chain;
18-
use std::slice::{Items, Found, NotFound};
1918
use std::collections::HashMap;
2019
use std::ascii::AsciiExt;
2120

src/atom/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use alloc::heap;
2424
use alloc::boxed::Box;
2525
use collections::string::String;
2626
use collections::hash::{Hash, Hasher};
27-
use sync::Mutex;
27+
use std::sync::Mutex;
2828

2929
use self::repr::{UnpackedAtom, Static, Inline, Dynamic};
3030

src/lib.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ extern crate core;
1818

1919
extern crate alloc;
2020
extern crate collections;
21-
extern crate sync;
2221

2322
#[cfg(test)]
2423
extern crate test;
2524

26-
#[cfg(test)]
2725
extern crate std;
2826

2927
#[phase(plugin)]
@@ -59,14 +57,3 @@ mod string_cache {
5957
pub use atom;
6058
pub use namespace;
6159
}
62-
63-
// For macros and deriving.
64-
#[cfg(not(test))]
65-
mod std {
66-
pub use core::{cmp, fmt, clone, option, mem, result};
67-
pub use collections::hash;
68-
69-
pub mod sync {
70-
pub use sync::one::{Once, ONCE_INIT};
71-
}
72-
}

0 commit comments

Comments
 (0)