1
Fork 0

Use in-band-lifetimes instead of unused explicit lifetimes

This commit is contained in:
Oliver Schneider 2018-05-24 14:11:56 +02:00
parent 80a1488601
commit 5c8741f32e
2 changed files with 3 additions and 2 deletions

View file

@ -68,6 +68,7 @@
#![feature(trusted_len)]
#![feature(catch_expr)]
#![feature(test)]
#![feature(in_band_lifetimes)]
#![recursion_limit="512"]

View file

@ -1513,7 +1513,7 @@ impl<'a, 'tcx> LayoutOf for LayoutCx<'tcx, ty::maps::TyCtxtAt<'a, 'tcx, 'tcx>> {
}
// Helper (inherent) `layout_of` methods to avoid pushing `LayoutCx` to users.
impl<'a, 'tcx, 'empty> TyCtxt<'a, 'tcx, 'empty> {
impl TyCtxt<'a, 'tcx, '_> {
/// Computes the layout of a type. Note that this implicitly
/// executes in "reveal all" mode.
#[inline]
@ -1527,7 +1527,7 @@ impl<'a, 'tcx, 'empty> TyCtxt<'a, 'tcx, 'empty> {
}
}
impl<'a, 'tcx, 'empty> ty::maps::TyCtxtAt<'a, 'tcx, 'empty> {
impl ty::maps::TyCtxtAt<'a, 'tcx, '_> {
/// Computes the layout of a type. Note that this implicitly
/// executes in "reveal all" mode.
#[inline]