Fixes compile bug caused by upstream changes
This commit is contained in:
parent
19adeaa3c6
commit
011c9eac35
|
@ -1032,7 +1032,7 @@ impl<'b, 'a, 'v> RootCollector<'b, 'a, 'v> {
|
|||
// late-bound regions, since late-bound
|
||||
// regions must appear in the argument
|
||||
// listing.
|
||||
let main_ret_ty = self.tcx.no_late_bound_regions(&main_ret_ty).unwrap();
|
||||
let main_ret_ty = main_ret_ty.no_late_bound_regions().unwrap();
|
||||
|
||||
let start_instance = Instance::resolve(
|
||||
self.tcx,
|
||||
|
|
|
@ -563,7 +563,7 @@ fn maybe_create_entry_wrapper(ccx: &CrateContext) {
|
|||
// late-bound regions, since late-bound
|
||||
// regions must appear in the argument
|
||||
// listing.
|
||||
let main_ret_ty = ccx.tcx().no_late_bound_regions(&main_ret_ty).unwrap();
|
||||
let main_ret_ty = main_ret_ty.no_late_bound_regions().unwrap();
|
||||
|
||||
if declare::get_defined_value(ccx, "main").is_some() {
|
||||
// FIXME: We should be smart and show a better diagnostic here.
|
||||
|
|
Loading…
Reference in New Issue