Fix duplicate methods in rustdoc

This commit is contained in:
Seo Sanghyeon 2015-02-24 23:05:44 +09:00
parent f0f7ca27de
commit f7aafcced8

View File

@ -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 {