Skip to content

Commit b91a51d

Browse files
committed
remove issue #3148 workarounds (no longer needed)
1 parent b34f871 commit b91a51d

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

src/libcore/hashmap.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ pub mod linear {
4949
buckets: ~[Option<Bucket<K, V>>],
5050
}
5151

52-
// FIXME(#3148) -- we could rewrite FoundEntry
53-
// to have type Option<&Bucket<K, V>> which would be nifty
54-
// However, that won't work until #3148 is fixed
52+
// We could rewrite FoundEntry to have type Option<&Bucket<K, V>>
53+
// which would be nifty
5554
enum SearchResult {
5655
FoundEntry(uint), FoundHole(uint), TableFull
5756
}
@@ -296,8 +295,6 @@ pub mod linear {
296295
FoundEntry(idx) => {
297296
match self.buckets[idx] {
298297
Some(ref bkt) => {
299-
// FIXME(#3148)---should be inferred
300-
let bkt: &self/Bucket<K, V> = bkt;
301298
Some(&bkt.value)
302299
}
303300
None => {

src/libstd/json.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -856,9 +856,6 @@ pub impl Decoder: serialize::Decoder {
856856
debug!("read_vec_elt(idx=%u)", idx);
857857
match *self.peek() {
858858
List(ref list) => {
859-
// FIXME(#3148)---should be inferred
860-
let list: &self/~[Json] = list;
861-
862859
self.stack.push(&list[idx]);
863860
f()
864861
}
@@ -885,9 +882,6 @@ pub impl Decoder: serialize::Decoder {
885882
let top = self.peek();
886883
match *top {
887884
Object(ref obj) => {
888-
// FIXME(#3148) This hint should not be necessary.
889-
let obj: &self/~Object = obj;
890-
891885
match obj.find(&name.to_owned()) {
892886
None => die!(fmt!("no such field: %s", name)),
893887
Some(json) => {
@@ -917,8 +911,6 @@ pub impl Decoder: serialize::Decoder {
917911
debug!("read_tup_elt(idx=%u)", idx);
918912
match *self.peek() {
919913
List(ref list) => {
920-
// FIXME(#3148)---should be inferred
921-
let list: &self/~[Json] = list;
922914
self.stack.push(&list[idx]);
923915
f()
924916
}

src/libstd/treemap.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ impl <K: Ord, V> TreeMap<K, V>: Map<K, V> {
142142
loop {
143143
match *current {
144144
Some(ref r) => {
145-
let r: &self/~TreeNode<K, V> = r; // FIXME: #3148
146145
if *key < r.key {
147146
current = &r.left;
148147
} else if r.key < *key {

0 commit comments

Comments
 (0)