@@ -185,7 +185,7 @@ pub mod linear {
185185 }
186186
187187 #[ inline( always) ]
188- pure fn value_for_bucket ( & self , idx : uint ) -> & self / V {
188+ pure fn value_for_bucket ( & self , idx : uint ) -> & ' self V {
189189 match self . buckets [ idx] {
190190 Some ( ref bkt) => & bkt. value ,
191191 None => fail ! ( ~"LinearMap :: find: internal logic error"),
@@ -270,10 +270,10 @@ pub mod linear {
270270 }
271271
272272 impl<K:Hash + IterBytes + Eq,V>
273- BaseIter<(&self/ K, &self/ V)> for LinearMap<K, V>
273+ BaseIter<(&' self K, &' self V)> for LinearMap<K, V>
274274 {
275275 /// Visit all key-value pairs
276- pure fn each(&self, blk: &fn(&(&self/ K, &self/ V)) -> bool) {
276+ pure fn each(&self, blk: &fn(&(&' self K, &' self V)) -> bool) {
277277 for uint::range(0, self.buckets.len()) |i| {
278278 let mut broke = false;
279279 do self.buckets[i].map |bucket| {
@@ -339,7 +339,7 @@ pub mod linear {
339339 }
340340
341341 /// Return the value corresponding to the key in the map
342- pure fn find(&self, k: &K) -> Option<&self/ V> {
342+ pure fn find(&self, k: &K) -> Option<&' self V> {
343343 match self.bucket_for_key(k) {
344344 FoundEntry(idx) => Some(self.value_for_bucket(idx)),
345345 TableFull | FoundHole(_) => None,
@@ -412,7 +412,7 @@ pub mod linear {
412412
413413 /// Return the value corresponding to the key in the map, or insert
414414 /// and return the value if it doesn't exist.
415- fn find_or_insert(&mut self, k: K, v: V) -> &self/ V {
415+ fn find_or_insert(&mut self, k: K, v: V) -> &' self V {
416416 if self.size >= self.resize_at {
417417 // n.b.: We could also do this after searching, so
418418 // that we do not resize if this call to insert is
@@ -442,7 +442,7 @@ pub mod linear {
442442
443443 /// Return the value corresponding to the key in the map, or create,
444444 /// insert, and return a new value if it doesn't exist.
445- fn find_or_insert_with(&mut self, k: K, f: &fn(&K) -> V) -> &self/ V {
445+ fn find_or_insert_with(&mut self, k: K, f: &fn(&K) -> V) -> &' self V {
446446 if self.size >= self.resize_at {
447447 // n.b.: We could also do this after searching, so
448448 // that we do not resize if this call to insert is
@@ -487,7 +487,7 @@ pub mod linear {
487487 }
488488 }
489489
490- pure fn get(&self, k: &K) -> &self/ V {
490+ pure fn get(&self, k: &K) -> &' self V {
491491 match self.find(k) {
492492 Some(v) => v,
493493 None => fail!(fmt!(" No entry found for key: %?" , k) ) ,
@@ -509,7 +509,7 @@ pub mod linear {
509509 /// Return the value corresponding to the key in the map, using
510510 /// equivalence
511511 pure fn find_equiv < Q : Hash + IterBytes + Equiv < K > > ( & self , k : & Q )
512- -> Option < & self / V > {
512+ -> Option < & ' self V > {
513513 match self . bucket_for_key_equiv ( k) {
514514 FoundEntry ( idx) => Some ( self . value_for_bucket ( idx) ) ,
515515 TableFull | FoundHole ( _) => None ,
0 commit comments