We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a722527 commit 03e955dCopy full SHA for 03e955d
compiler/rustc_typeck/src/variance/constraints.rs
@@ -81,7 +81,7 @@ pub fn add_constraints_from_crate<'a, 'tcx>(
81
}
82
83
for id in crate_items.foreign_items() {
84
- if let DefKind::AssocFn = tcx.hir().def_kind(id.def_id) {
+ if let DefKind::Fn = tcx.hir().def_kind(id.def_id) {
85
constraint_cx.check_node_helper(id.hir_id());
86
87
0 commit comments