Use in-band-lifetimes instead of unused explicit lifetimes
This commit is contained in:
parent
80a1488601
commit
5c8741f32e
2 changed files with 3 additions and 2 deletions
|
@ -68,6 +68,7 @@
|
|||
#![feature(trusted_len)]
|
||||
#![feature(catch_expr)]
|
||||
#![feature(test)]
|
||||
#![feature(in_band_lifetimes)]
|
||||
|
||||
#![recursion_limit="512"]
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue