Use ty_error_with_guaranteed in many more places
This commit is contained in:
parent
fdbc4329cb
commit
1e7ef03b40
16 changed files with 306 additions and 226 deletions
|
@ -639,7 +639,7 @@ fn construct_error(
|
|||
let hir_id = tcx.hir().local_def_id_to_hir_id(def);
|
||||
let generator_kind = tcx.generator_kind(def);
|
||||
|
||||
let ty = tcx.ty_error();
|
||||
let ty = tcx.ty_error_with_guaranteed(err);
|
||||
let num_params = match body_owner_kind {
|
||||
hir::BodyOwnerKind::Fn => tcx.fn_sig(def).skip_binder().inputs().skip_binder().len(),
|
||||
hir::BodyOwnerKind::Closure => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue