Fix duplicate methods in rustdoc
This commit is contained in:
parent
f0f7ca27de
commit
f7aafcced8
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user