about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast.rs8
-rw-r--r--src/libsyntax/util/interner.rs5
2 files changed, 1 insertions, 12 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 0f982741fc1..e79bc5dfdf7 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -1159,14 +1159,6 @@ mod test {
 
     use std::vec_ng::Vec;
 
-    fn is_share<T: Share>() {}
-
-    // Assert that the AST remains sharable.
-    #[test]
-    fn ast_is_share() {
-        is_share::<Item>();
-    }
-
     // are ASTs encodable?
     #[test]
     fn check_asts_encodable() {
diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs
index e290932a303..362d08a5748 100644
--- a/src/libsyntax/util/interner.rs
+++ b/src/libsyntax/util/interner.rs
@@ -23,16 +23,13 @@ use std::hash::Hash;
 use std::rc::Rc;
 use std::vec_ng::Vec;
 
-#[cfg(stage0)]
-use std::kinds::Share;
-
 pub struct Interner<T> {
     priv map: RefCell<HashMap<T, Name>>,
     priv vect: RefCell<Vec<T> >,
 }
 
 // when traits can extend traits, we should extend index<Name,T> to get []
-impl<T: Eq + Hash + Share + Clone + 'static> Interner<T> {
+impl<T: Eq + Hash + Clone + 'static> Interner<T> {
     pub fn new() -> Interner<T> {
         Interner {
             map: RefCell::new(HashMap::new()),