Skip to content

Commit 011c9ea

Browse files
committed
Fixes compile bug caused by upstream changes
1 parent 19adeaa commit 011c9ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_mir/monomorphize/collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ impl<'b, 'a, 'v> RootCollector<'b, 'a, 'v> {
10321032
// late-bound regions, since late-bound
10331033
// regions must appear in the argument
10341034
// listing.
1035-
let main_ret_ty = self.tcx.no_late_bound_regions(&main_ret_ty).unwrap();
1035+
let main_ret_ty = main_ret_ty.no_late_bound_regions().unwrap();
10361036

10371037
let start_instance = Instance::resolve(
10381038
self.tcx,

src/librustc_trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ fn maybe_create_entry_wrapper(ccx: &CrateContext) {
563563
// late-bound regions, since late-bound
564564
// regions must appear in the argument
565565
// listing.
566-
let main_ret_ty = ccx.tcx().no_late_bound_regions(&main_ret_ty).unwrap();
566+
let main_ret_ty = main_ret_ty.no_late_bound_regions().unwrap();
567567

568568
if declare::get_defined_value(ccx, "main").is_some() {
569569
// FIXME: We should be smart and show a better diagnostic here.

0 commit comments

Comments
 (0)