diff options
| author | bors <bors@rust-lang.org> | 2023-01-27 15:02:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-01-27 15:02:44 +0000 |
| commit | 7ef46c8babb87382b4bff97a0536a32d70c4db32 (patch) | |
| tree | c610606d6fece8079b6515940cd43603c0b5eca2 | |
| parent | 02d5f7fa4d693824d097f5f99f6a56f835f11d47 (diff) | |
| parent | 21575908c62f563fbc6d161c4fa44b2000a04e2f (diff) | |
| download | rust-7ef46c8babb87382b4bff97a0536a32d70c4db32.tar.gz rust-7ef46c8babb87382b4bff97a0536a32d70c4db32.zip | |
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 https://github.com/rust-lang/types-team/issues/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`
| -rw-r--r-- | src/main_shim.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_shim.rs b/src/main_shim.rs index fd45362548c..3e3b6857134 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.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 |
