Skip to content

Commit 797ccd0

Browse files
committed
Auto merge of #107055 - kylematsuda:eb-fn-sig, r=lcnr
Switch to `EarlyBinder` for `fn_sig` query Part of the work to finish #105779 (also see rust-lang/types-team#78). Several queries `X` have a `bound_X` variant that wraps the output in [`EarlyBinder`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/subst/struct.EarlyBinder.html). This adds `EarlyBinder` to the return type of the `fn_sig` query and removes `bound_fn_sig`. r? `@lcnr`
2 parents 7c55364 + 5b8d9a1 commit 797ccd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
357357
match entry_type {
358358
EntryFnType::Main { .. } => {
359359
let start_id = tcx.lang_items().start_fn().unwrap();
360-
let main_ret_ty = tcx.fn_sig(entry_id).output();
360+
let main_ret_ty = tcx.fn_sig(entry_id).no_bound_vars().unwrap().output();
361361
let main_ret_ty = main_ret_ty.no_bound_vars().unwrap();
362362
let start_instance = ty::Instance::resolve(
363363
tcx,

0 commit comments

Comments
 (0)