diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2014-12-16 17:34:47 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2014-12-19 03:29:59 -0500 |
| commit | 1085012cd2f587bed0eb64a547d03d671d3a5c6f (patch) | |
| tree | dd4dd9a871dfb80cca7e3197e560ed194a9334cb | |
| parent | d4f8a5abc54d3f7493ab097fb60ed4eef6920912 (diff) | |
| download | rust-1085012cd2f587bed0eb64a547d03d671d3a5c6f.tar.gz rust-1085012cd2f587bed0eb64a547d03d671d3a5c6f.zip | |
Kill some warnings about shadowed lifetimes
| -rw-r--r-- | src/librustc/middle/ty_fold.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/middle/ty_fold.rs b/src/librustc/middle/ty_fold.rs index cde0470ff48..71e42a9dbb3 100644 --- a/src/librustc/middle/ty_fold.rs +++ b/src/librustc/middle/ty_fold.rs @@ -711,7 +711,7 @@ pub struct BottomUpFolder<'a, 'tcx: 'a, F> where F: FnMut(Ty<'tcx>) -> Ty<'tcx> impl<'a, 'tcx, F> TypeFolder<'tcx> for BottomUpFolder<'a, 'tcx, F> where F: FnMut(Ty<'tcx>) -> Ty<'tcx>, { - fn tcx<'a>(&'a self) -> &'a ty::ctxt<'tcx> { self.tcx } + fn tcx(&self) -> &ty::ctxt<'tcx> { self.tcx } fn fold_ty(&mut self, ty: Ty<'tcx>) -> Ty<'tcx> { let t1 = super_fold_ty(self, ty); @@ -769,7 +769,7 @@ pub fn fold_regions<'tcx,T,F>(tcx: &ty::ctxt<'tcx>, impl<'a, 'tcx> TypeFolder<'tcx> for RegionFolder<'a, 'tcx> { - fn tcx<'a>(&'a self) -> &'a ty::ctxt<'tcx> { self.tcx } + fn tcx(&self) -> &ty::ctxt<'tcx> { self.tcx } fn enter_region_binder(&mut self) { self.current_depth += 1; |
