Remove Clean trait implementation for hir::TypeBindingKind
This commit is contained in:
parent
9dd59ddfbf
commit
fc1c858a48
1 changed files with 2 additions and 8 deletions
|
@ -2257,19 +2257,13 @@ fn clean_type_binding<'tcx>(
|
||||||
) -> TypeBinding {
|
) -> TypeBinding {
|
||||||
TypeBinding {
|
TypeBinding {
|
||||||
assoc: PathSegment { name: type_binding.ident.name, args: type_binding.gen_args.clean(cx) },
|
assoc: PathSegment { name: type_binding.ident.name, args: type_binding.gen_args.clean(cx) },
|
||||||
kind: type_binding.kind.clean(cx),
|
kind: match type_binding.kind {
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'tcx> Clean<'tcx, TypeBindingKind> for hir::TypeBindingKind<'tcx> {
|
|
||||||
fn clean(&self, cx: &mut DocContext<'tcx>) -> TypeBindingKind {
|
|
||||||
match *self {
|
|
||||||
hir::TypeBindingKind::Equality { ref term } => {
|
hir::TypeBindingKind::Equality { ref term } => {
|
||||||
TypeBindingKind::Equality { term: clean_hir_term(term, cx) }
|
TypeBindingKind::Equality { term: clean_hir_term(term, cx) }
|
||||||
}
|
}
|
||||||
hir::TypeBindingKind::Constraint { bounds } => TypeBindingKind::Constraint {
|
hir::TypeBindingKind::Constraint { bounds } => TypeBindingKind::Constraint {
|
||||||
bounds: bounds.iter().filter_map(|b| b.clean(cx)).collect(),
|
bounds: bounds.iter().filter_map(|b| b.clean(cx)).collect(),
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue