1
Fork 0

change fn_sig query to use EarlyBinder; remove bound_fn_sig query; add EarlyBinder to fn_sig in metadata

This commit is contained in:
Kyle Matsuda 2023-01-18 16:52:47 -07:00
parent e982971ff2
commit c2414dfaa4
80 changed files with 142 additions and 152 deletions

View file

@ -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() {