summary refs log tree commit diff
path: root/src/libsyntax/util
diff options
context:
space:
mode:
authorFlavio Percoco <flaper87@gmail.com>2014-03-07 18:57:35 +0100
committerFlavio Percoco <flaper87@gmail.com>2014-03-20 10:16:55 +0100
commit12ecafb31da2d0fe4654587375b464ea4d1151b1 (patch)
tree5e8de06feb4495f1e25a9ac090d75bdfeb2b9edb /src/libsyntax/util
parent21d23ff25b3709bbd72b62613ba6db00d65bf1a4 (diff)
downloadrust-12ecafb31da2d0fe4654587375b464ea4d1151b1.tar.gz
rust-12ecafb31da2d0fe4654587375b464ea4d1151b1.zip
Replace Freeze bounds with Share bounds
Diffstat (limited to 'src/libsyntax/util')
-rw-r--r--src/libsyntax/util/interner.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs
index c1ed96fe4de..e290932a303 100644
--- a/src/libsyntax/util/interner.rs
+++ b/src/libsyntax/util/interner.rs
@@ -23,13 +23,16 @@ 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 + Freeze + Clone + 'static> Interner<T> {
+impl<T: Eq + Hash + Share + Clone + 'static> Interner<T> {
     pub fn new() -> Interner<T> {
         Interner {
             map: RefCell::new(HashMap::new()),