We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5cbb87 commit 69bd532Copy full SHA for 69bd532
src/main_shim.rs
@@ -51,7 +51,10 @@ pub(crate) fn maybe_create_entry_wrapper(
51
// late-bound regions, since late-bound
52
// regions must appear in the argument
53
// listing.
54
- let main_ret_ty = tcx.erase_regions(main_ret_ty.no_bound_vars().unwrap());
+ let main_ret_ty = tcx.normalize_erasing_regions(
55
+ ty::ParamEnv::reveal_all(),
56
+ main_ret_ty.no_bound_vars().unwrap(),
57
+ );
58
59
let cmain_sig = Signature {
60
params: vec![
0 commit comments