diff options
| author | Kyle Matsuda <kyle.yoshio.matsuda@gmail.com> | 2023-01-19 12:09:01 -0700 |
|---|---|---|
| committer | Kyle Matsuda <kyle.yoshio.matsuda@gmail.com> | 2023-01-26 20:28:31 -0700 |
| commit | ab40ba2fb1c034554f12a0f8ada3f5f3e42ad592 (patch) | |
| tree | 80ec7ac5605991eaacbddc5bfcb1267e7962b6f7 /compiler/rustc_codegen_cranelift | |
| parent | c2414dfaa4a01a60ec65c44879e103c3fc3152bb (diff) | |
| download | rust-ab40ba2fb1c034554f12a0f8ada3f5f3e42ad592.tar.gz rust-ab40ba2fb1c034554f12a0f8ada3f5f3e42ad592.zip | |
add EarlyBinder::no_bound_vars
Diffstat (limited to 'compiler/rustc_codegen_cranelift')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/main_shim.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/main_shim.rs b/compiler/rustc_codegen_cranelift/src/main_shim.rs index bc1b1ec7cd5..70cf28267d7 100644 --- a/compiler/rustc_codegen_cranelift/src/main_shim.rs +++ b/compiler/rustc_codegen_cranelift/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).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 |
