Skip to content

Commit

Permalink
Fix stability_summary fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanzab committed Nov 12, 2014
1 parent de938b6 commit 064e84e
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/librustdoc/stability_summary.rs
Expand Up @@ -120,15 +120,19 @@ fn summarize_methods(item: &Item) -> Counts {
match cache_key.get().unwrap().impls.get(&item.def_id) {
Some(v) => {
v.iter().map(|i| {
let mut count = count_stability(i.stability.as_ref());
let count = count_stability(i.stability.as_ref());
if i.impl_.trait_.is_none() {
count = count +
i.impl_.items.iter().map(|ti| summarize_item(ti).0).sum();
count + i.impl_.items.iter()
.map(|ti| summarize_item(ti).0)
.fold(Counts::zero(), |acc, c| acc + c)
} else {
count
}
count
}).sum()
}
None => Zero::zero()
}).fold(Counts::zero(), |acc, c| acc + c)
},
None => {
Counts::zero()
},
}
}

Expand Down

0 comments on commit 064e84e

Please sign in to comment.