@@ -159,7 +159,7 @@ pub mod linear {
159
159
pure fn value_for_bucket ( & self , idx : uint ) -> & self /V {
160
160
match self . buckets [ idx] {
161
161
Some ( ref bkt) => & bkt. value ,
162
- None => die ! ( ~"LinearMap :: find: internal logic error"),
162
+ None => fail ! ( ~"LinearMap :: find: internal logic error"),
163
163
}
164
164
}
165
165
@@ -373,7 +373,7 @@ pub mod linear {
373
373
374
374
let hash = k.hash_keyed(self.k0, self.k1) as uint;
375
375
let idx = match self.bucket_for_key_with_hash(hash, &k) {
376
- TableFull => die !(~" Internal logic error"),
376
+ TableFull => fail !(~" Internal logic error"),
377
377
FoundEntry(idx) => idx,
378
378
FoundHole(idx) => {
379
379
self.buckets[idx] = Some(Bucket{hash: hash, key: k,
@@ -403,7 +403,7 @@ pub mod linear {
403
403
404
404
let hash = k.hash_keyed(self.k0, self.k1) as uint;
405
405
let idx = match self.bucket_for_key_with_hash(hash, &k) {
406
- TableFull => die !(~" Internal logic error"),
406
+ TableFull => fail !(~" Internal logic error"),
407
407
FoundEntry(idx) => idx,
408
408
FoundHole(idx) => {
409
409
let v = f(&k);
0 commit comments