diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2014-03-19 15:14:08 +0100 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2014-03-20 10:16:55 +0100 |
| commit | b85d5f1f9a873e706bd17be843cd54f55dcff211 (patch) | |
| tree | 8c868e09b16133b908b9f7067206057fb2e07a36 /src/libsyntax/util | |
| parent | 12ecafb31da2d0fe4654587375b464ea4d1151b1 (diff) | |
| download | rust-b85d5f1f9a873e706bd17be843cd54f55dcff211.tar.gz rust-b85d5f1f9a873e706bd17be843cd54f55dcff211.zip | |
Relax interner's Share bound
The interner uses `RefCell` internally which opted out from Share.
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/interner.rs | 5 |
1 files changed, 1 insertions, 4 deletions
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()), |
