@@ -19,24 +19,24 @@ pub use self::PpMode::*;
19
19
pub use self :: PpSourceMode :: * ;
20
20
use crate :: abort_on_err;
21
21
22
- struct NoAnn < ' hir > {
23
- tcx : Option < TyCtxt < ' hir > > ,
22
+ struct NoAnn < ' tcx > {
23
+ tcx : Option < TyCtxt < ' tcx > > ,
24
24
}
25
25
26
- impl < ' hir > pprust_ast:: PpAnn for NoAnn < ' hir > { }
27
- impl < ' hir > pprust_hir:: PpAnn for NoAnn < ' hir > {
26
+ impl < ' tcx > pprust_ast:: PpAnn for NoAnn < ' tcx > { }
27
+ impl < ' tcx > pprust_hir:: PpAnn for NoAnn < ' tcx > {
28
28
fn nested ( & self , state : & mut pprust_hir:: State < ' _ > , nested : pprust_hir:: Nested ) {
29
29
if let Some ( tcx) = self . tcx {
30
30
pprust_hir:: PpAnn :: nested ( & ( & tcx. hir ( ) as & dyn hir:: intravisit:: Map < ' _ > ) , state, nested)
31
31
}
32
32
}
33
33
}
34
34
35
- struct IdentifiedAnnotation < ' hir > {
36
- tcx : Option < TyCtxt < ' hir > > ,
35
+ struct IdentifiedAnnotation < ' tcx > {
36
+ tcx : Option < TyCtxt < ' tcx > > ,
37
37
}
38
38
39
- impl < ' hir > pprust_ast:: PpAnn for IdentifiedAnnotation < ' hir > {
39
+ impl < ' tcx > pprust_ast:: PpAnn for IdentifiedAnnotation < ' tcx > {
40
40
fn pre ( & self , s : & mut pprust_ast:: State < ' _ > , node : pprust_ast:: AnnNode < ' _ > ) {
41
41
if let pprust_ast:: AnnNode :: Expr ( _) = node {
42
42
s. popen ( ) ;
@@ -74,7 +74,7 @@ impl<'hir> pprust_ast::PpAnn for IdentifiedAnnotation<'hir> {
74
74
}
75
75
}
76
76
77
- impl < ' hir > pprust_hir:: PpAnn for IdentifiedAnnotation < ' hir > {
77
+ impl < ' tcx > pprust_hir:: PpAnn for IdentifiedAnnotation < ' tcx > {
78
78
fn nested ( & self , state : & mut pprust_hir:: State < ' _ > , nested : pprust_hir:: Nested ) {
79
79
if let Some ( ref tcx) = self . tcx {
80
80
pprust_hir:: PpAnn :: nested ( & ( & tcx. hir ( ) as & dyn hir:: intravisit:: Map < ' _ > ) , state, nested)
0 commit comments