X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_middle%2Fsrc%2Fty%2Ffold.rs;h=8a0019bc0127c9df4ee2e224d30567bf194d4992;hb=496adf81deaec94015e4cde2165d094eac09a940;hp=1445bc1ed32e60c604e275f948ce30722390a2b2;hpb=a37a59f45e40434cff2b5a23402b0bec42cce848;p=rust.git diff --git a/compiler/rustc_middle/src/ty/fold.rs b/compiler/rustc_middle/src/ty/fold.rs index 1445bc1ed32..8a0019bc012 100644 --- a/compiler/rustc_middle/src/ty/fold.rs +++ b/compiler/rustc_middle/src/ty/fold.rs @@ -105,7 +105,7 @@ fn super_fold_with>(self, folder: &mut F) -> Self { /// the infallible methods of this trait to ensure that the two APIs /// are coherent. pub trait TypeFolder<'tcx>: FallibleTypeFolder<'tcx, Error = !> { - fn tcx<'a>(&'a self) -> TyCtxt<'tcx>; + fn tcx(&self) -> TyCtxt<'tcx>; fn fold_binder(&mut self, t: Binder<'tcx, T>) -> Binder<'tcx, T> where