about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-01-18 15:43:20 -0700
committerKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-01-26 20:15:36 -0700
commita88ec47d4879fcee7ee71fd41b924bdb0f707d26 (patch)
tree1ecb3e8a530cbfacc0c425f77579830119153487
parent3ac370b8908899d800be823f3f35ce23be46083b (diff)
downloadrust-a88ec47d4879fcee7ee71fd41b924bdb0f707d26.tar.gz
rust-a88ec47d4879fcee7ee71fd41b924bdb0f707d26.zip
replace usages of fn_sig query with bound_fn_sig
-rw-r--r--src/main_shim.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_shim.rs b/src/main_shim.rs
index c10054e7f0d..f46e6b6528c 100644
--- a/src/main_shim.rs
+++ b/src/main_shim.rs
@@ -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).output();
+        let main_ret_ty = tcx.bound_fn_sig(rust_main_def_id).subst_identity().output();
         // Given that `main()` has no arguments,
         // then its return type cannot have
         // late-bound regions, since late-bound