add EarlyBinder::no_bound_vars

This commit is contained in:
Kyle Matsuda 2023-01-19 12:09:01 -07:00
parent 7bb0bfea04
commit 21575908c6

View File

@ -46,7 +46,7 @@ pub(crate) fn maybe_create_entry_wrapper(
is_main_fn: bool,
sigpipe: u8,
) {
let main_ret_ty = tcx.fn_sig(rust_main_def_id).subst_identity().output();
let main_ret_ty = tcx.fn_sig(rust_main_def_id).no_bound_vars().unwrap().output();
// Given that `main()` has no arguments,
// then its return type cannot have
// late-bound regions, since late-bound