Skip to content

Commit 5c8741f

Browse files
committed
Use in-band-lifetimes instead of unused explicit lifetimes
1 parent 80a1488 commit 5c8741f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/librustc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
#![feature(trusted_len)]
6969
#![feature(catch_expr)]
7070
#![feature(test)]
71+
#![feature(in_band_lifetimes)]
7172

7273
#![recursion_limit="512"]
7374

src/librustc/ty/layout.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@ impl<'a, 'tcx> LayoutOf for LayoutCx<'tcx, ty::maps::TyCtxtAt<'a, 'tcx, 'tcx>> {
15131513
}
15141514

15151515
// Helper (inherent) `layout_of` methods to avoid pushing `LayoutCx` to users.
1516-
impl<'a, 'tcx, 'empty> TyCtxt<'a, 'tcx, 'empty> {
1516+
impl TyCtxt<'a, 'tcx, '_> {
15171517
/// Computes the layout of a type. Note that this implicitly
15181518
/// executes in "reveal all" mode.
15191519
#[inline]
@@ -1527,7 +1527,7 @@ impl<'a, 'tcx, 'empty> TyCtxt<'a, 'tcx, 'empty> {
15271527
}
15281528
}
15291529

1530-
impl<'a, 'tcx, 'empty> ty::maps::TyCtxtAt<'a, 'tcx, 'empty> {
1530+
impl ty::maps::TyCtxtAt<'a, 'tcx, '_> {
15311531
/// Computes the layout of a type. Note that this implicitly
15321532
/// executes in "reveal all" mode.
15331533
#[inline]

0 commit comments

Comments
 (0)