@@ -18,24 +18,24 @@ pub use self::PpMode::*;
1818pub use self :: PpSourceMode :: * ;
1919use crate :: abort_on_err;
2020
21- struct NoAnn < ' hir > {
22- tcx : Option < TyCtxt < ' hir > > ,
21+ struct NoAnn < ' tcx > {
22+ tcx : Option < TyCtxt < ' tcx > > ,
2323}
2424
25- impl < ' hir > pprust_ast:: PpAnn for NoAnn < ' hir > { }
26- impl < ' hir > pprust_hir:: PpAnn for NoAnn < ' hir > {
25+ impl < ' tcx > pprust_ast:: PpAnn for NoAnn < ' tcx > { }
26+ impl < ' tcx > pprust_hir:: PpAnn for NoAnn < ' tcx > {
2727 fn nested ( & self , state : & mut pprust_hir:: State < ' _ > , nested : pprust_hir:: Nested ) {
2828 if let Some ( tcx) = self . tcx {
2929 pprust_hir:: PpAnn :: nested ( & ( & tcx. hir ( ) as & dyn hir:: intravisit:: Map < ' _ > ) , state, nested)
3030 }
3131 }
3232}
3333
34- struct IdentifiedAnnotation < ' hir > {
35- tcx : Option < TyCtxt < ' hir > > ,
34+ struct IdentifiedAnnotation < ' tcx > {
35+ tcx : Option < TyCtxt < ' tcx > > ,
3636}
3737
38- impl < ' hir > pprust_ast:: PpAnn for IdentifiedAnnotation < ' hir > {
38+ impl < ' tcx > pprust_ast:: PpAnn for IdentifiedAnnotation < ' tcx > {
3939 fn pre ( & self , s : & mut pprust_ast:: State < ' _ > , node : pprust_ast:: AnnNode < ' _ > ) {
4040 if let pprust_ast:: AnnNode :: Expr ( _) = node {
4141 s. popen ( ) ;
@@ -73,7 +73,7 @@ impl<'hir> pprust_ast::PpAnn for IdentifiedAnnotation<'hir> {
7373 }
7474}
7575
76- impl < ' hir > pprust_hir:: PpAnn for IdentifiedAnnotation < ' hir > {
76+ impl < ' tcx > pprust_hir:: PpAnn for IdentifiedAnnotation < ' tcx > {
7777 fn nested ( & self , state : & mut pprust_hir:: State < ' _ > , nested : pprust_hir:: Nested ) {
7878 if let Some ( ref tcx) = self . tcx {
7979 pprust_hir:: PpAnn :: nested ( & ( & tcx. hir ( ) as & dyn hir:: intravisit:: Map < ' _ > ) , state, nested)
0 commit comments