replace usages of fn_sig query with bound_fn_sig
This commit is contained in:
parent
d7948c843d
commit
e982971ff2
66 changed files with 147 additions and 113 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue