mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-07 15:37:39 +00:00
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
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user