fn check_fn_or_method<'tcx>(
    wfcx: &WfCheckingCtxt<'_, 'tcx>,
    span: Span,
    sig: PolyFnSig<'tcx>,
    hir_decl: &FnDecl<'_>,
    def_id: LocalDefId
)