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 1f95c91 commit 7cece8eCopy full SHA for 7cece8e
compiler/rustc_typeck/src/check/check.rs
@@ -103,6 +103,9 @@ pub(super) fn check_fn<'a, 'tcx>(
103
Node::ImplItem(hir::ImplItem {
104
kind: hir::ImplItemKind::Fn(header, ..), ..
105
}) => Some(header),
106
+ Node::TraitItem(hir::TraitItem {
107
+ kind: hir::TraitItemKind::Fn(header, .. ), ..
108
+ }) => Some(header),
109
// Closures are RustCall, but they tuple their arguments, so shouldn't be checked
110
Node::Expr(hir::Expr { kind: hir::ExprKind::Closure(..), .. }) => None,
111
node => bug!("Item being checked wasn't a function/closure: {:?}", node),
0 commit comments