Skip to content

Commit

Permalink
Fix duplicate methods in rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
sanxiyn committed Feb 24, 2015
1 parent f0f7ca2 commit f7aafcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustdoc/clean/inline.rs
Expand Up @@ -308,6 +308,9 @@ fn build_impl(cx: &DocContext, tcx: &ty::ctxt,
if method.vis != ast::Public && associated_trait.is_none() {
return None
}
if method.provided_source.is_some() {
return None
}
let mut item = method.clean(cx);
item.inner = match item.inner.clone() {
clean::TyMethodItem(clean::TyMethod {
Expand Down

0 comments on commit f7aafcc

Please sign in to comment.