Skip to content

Commit 1085012

Browse files
committed
Kill some warnings about shadowed lifetimes
1 parent d4f8a5a commit 1085012

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/ty_fold.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ pub struct BottomUpFolder<'a, 'tcx: 'a, F> where F: FnMut(Ty<'tcx>) -> Ty<'tcx>
711711
impl<'a, 'tcx, F> TypeFolder<'tcx> for BottomUpFolder<'a, 'tcx, F> where
712712
F: FnMut(Ty<'tcx>) -> Ty<'tcx>,
713713
{
714-
fn tcx<'a>(&'a self) -> &'a ty::ctxt<'tcx> { self.tcx }
714+
fn tcx(&self) -> &ty::ctxt<'tcx> { self.tcx }
715715

716716
fn fold_ty(&mut self, ty: Ty<'tcx>) -> Ty<'tcx> {
717717
let t1 = super_fold_ty(self, ty);
@@ -769,7 +769,7 @@ pub fn fold_regions<'tcx,T,F>(tcx: &ty::ctxt<'tcx>,
769769

770770
impl<'a, 'tcx> TypeFolder<'tcx> for RegionFolder<'a, 'tcx>
771771
{
772-
fn tcx<'a>(&'a self) -> &'a ty::ctxt<'tcx> { self.tcx }
772+
fn tcx(&self) -> &ty::ctxt<'tcx> { self.tcx }
773773

774774
fn enter_region_binder(&mut self) {
775775
self.current_depth += 1;

0 commit comments

Comments
 (0)