Skip to content

Commit

Permalink
Sidestep an ICE by providing *some* description for ReEmpty when it…
Browse files Browse the repository at this point in the history
… arises.
  • Loading branch information
pnkfelix committed Nov 3, 2018
1 parent 05812fa commit 5aeb6c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc/infer/error_reporting/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
self.msg_span_from_early_bound_and_free_regions(region)
}
ty::ReStatic => ("the static lifetime".to_owned(), None),
ty::ReEmpty => ("an empty lifetime".to_owned(), None),
_ => bug!("{:?}", region),
}
}
Expand Down

0 comments on commit 5aeb6c7

Please sign in to comment.