Fixes compile bug caused by upstream changes

This commit is contained in:
Bastian Köcher 2017-12-05 12:10:47 +01:00
parent 19adeaa3c6
commit 011c9eac35
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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.