Skip to content

Commit 5aeb6c7

Browse files
committed
Sidestep an ICE by providing *some* description for ReEmpty when it arises.
1 parent 05812fa commit 5aeb6c7

File tree

1 file changed

+1
-0
lines changed
  • src/librustc/infer/error_reporting

1 file changed

+1
-0
lines changed

src/librustc/infer/error_reporting/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
178178
self.msg_span_from_early_bound_and_free_regions(region)
179179
}
180180
ty::ReStatic => ("the static lifetime".to_owned(), None),
181+
ty::ReEmpty => ("an empty lifetime".to_owned(), None),
181182
_ => bug!("{:?}", region),
182183
}
183184
}

0 commit comments

Comments
 (0)