use DefKind::Fn instead of DefKind::AsscFn for foreign items
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
This commit is contained in:
parent
a7225275e5
commit
03e955d812
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ pub fn add_constraints_from_crate<'a, 'tcx>(
|
|||
}
|
||||
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue