Skip to content

Commit

Permalink
Kill some warnings about shadowed lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Dec 19, 2014
1 parent d4f8a5a commit 1085012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/middle/ty_fold.rs
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1085012

Please sign in to comment.