use DefKind::Fn instead of DefKind::AsscFn for foreign items
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
This commit is contained in:
@@ -81,7 +81,7 @@ pub fn add_constraints_from_crate<'a, 'tcx>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
for id in crate_items.foreign_items() {
|
for id in crate_items.foreign_items() {
|
||||||
if let DefKind::AssocFn = tcx.hir().def_kind(id.def_id) {
|
if let DefKind::Fn = tcx.hir().def_kind(id.def_id) {
|
||||||
constraint_cx.check_node_helper(id.hir_id());
|
constraint_cx.check_node_helper(id.hir_id());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user