replace usages of fn_sig query with bound_fn_sig
This commit is contained in:
parent
3ac370b890
commit
a88ec47d48
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ pub(crate) fn maybe_create_entry_wrapper(
|
||||||
is_main_fn: bool,
|
is_main_fn: bool,
|
||||||
sigpipe: u8,
|
sigpipe: u8,
|
||||||
) {
|
) {
|
||||||
let main_ret_ty = tcx.fn_sig(rust_main_def_id).output();
|
let main_ret_ty = tcx.bound_fn_sig(rust_main_def_id).subst_identity().output();
|
||||||
// Given that `main()` has no arguments,
|
// Given that `main()` has no arguments,
|
||||||
// then its return type cannot have
|
// then its return type cannot have
|
||||||
// late-bound regions, since late-bound
|
// late-bound regions, since late-bound
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue