1
Fork 0

replace usages of fn_sig query with bound_fn_sig

This commit is contained in:
Kyle Matsuda 2023-01-18 15:43:20 -07:00
parent d7948c843d
commit e982971ff2
66 changed files with 147 additions and 113 deletions

View file

@ -637,7 +637,9 @@ fn construct_error(
let ty = tcx.ty_error();
let num_params = match body_owner_kind {
hir::BodyOwnerKind::Fn => tcx.fn_sig(def).inputs().skip_binder().len(),
hir::BodyOwnerKind::Fn => {
tcx.bound_fn_sig(def.into()).skip_binder().inputs().skip_binder().len()
}
hir::BodyOwnerKind::Closure => {
let ty = tcx.type_of(def);
match ty.kind() {