change fn_sig query to use EarlyBinder; remove bound_fn_sig query; add EarlyBinder to fn_sig in metadata
This commit is contained in:
parent
e982971ff2
commit
c2414dfaa4
80 changed files with 142 additions and 152 deletions
|
@ -637,9 +637,7 @@ fn construct_error(
|
|||
|
||||
let ty = tcx.ty_error();
|
||||
let num_params = match body_owner_kind {
|
||||
hir::BodyOwnerKind::Fn => {
|
||||
tcx.bound_fn_sig(def.into()).skip_binder().inputs().skip_binder().len()
|
||||
}
|
||||
hir::BodyOwnerKind::Fn => tcx.fn_sig(def).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