@@ -143,7 +143,7 @@ impl<'hir> HirPrinterSupport<'hir> for NoAnn<'hir> {
143143 }
144144
145145 fn hir_map < ' a > ( & ' a self ) -> Option < & ' a hir_map:: Map < ' hir > > {
146- self . tcx . map ( |tcx| tcx. hir ( ) )
146+ self . tcx . map ( |tcx| * tcx. hir ( ) )
147147 }
148148
149149 fn pp_ann < ' a > ( & ' a self ) -> & ' a dyn pprust_hir:: PpAnn {
@@ -155,7 +155,7 @@ impl<'hir> pprust::PpAnn for NoAnn<'hir> {}
155155impl < ' hir > pprust_hir:: PpAnn for NoAnn < ' hir > {
156156 fn nested ( & self , state : & mut pprust_hir:: State < ' _ > , nested : pprust_hir:: Nested ) {
157157 if let Some ( tcx) = self . tcx {
158- pprust_hir:: PpAnn :: nested ( tcx. hir ( ) , state, nested)
158+ pprust_hir:: PpAnn :: nested ( * tcx. hir ( ) , state, nested)
159159 }
160160 }
161161}
@@ -217,7 +217,7 @@ impl<'hir> HirPrinterSupport<'hir> for IdentifiedAnnotation<'hir> {
217217 }
218218
219219 fn hir_map < ' a > ( & ' a self ) -> Option < & ' a hir_map:: Map < ' hir > > {
220- self . tcx . map ( |tcx| tcx. hir ( ) )
220+ self . tcx . map ( |tcx| * tcx. hir ( ) )
221221 }
222222
223223 fn pp_ann < ' a > ( & ' a self ) -> & ' a dyn pprust_hir:: PpAnn {
@@ -228,7 +228,7 @@ impl<'hir> HirPrinterSupport<'hir> for IdentifiedAnnotation<'hir> {
228228impl < ' hir > pprust_hir:: PpAnn for IdentifiedAnnotation < ' hir > {
229229 fn nested ( & self , state : & mut pprust_hir:: State < ' _ > , nested : pprust_hir:: Nested ) {
230230 if let Some ( ref tcx) = self . tcx {
231- pprust_hir:: PpAnn :: nested ( tcx. hir ( ) , state, nested)
231+ pprust_hir:: PpAnn :: nested ( * tcx. hir ( ) , state, nested)
232232 }
233233 }
234234 fn pre ( & self , s : & mut pprust_hir:: State < ' _ > , node : pprust_hir:: AnnNode < ' _ > ) {
@@ -334,7 +334,7 @@ impl<'a, 'tcx> pprust_hir::PpAnn for TypedAnnotation<'a, 'tcx> {
334334 if let pprust_hir:: Nested :: Body ( id) = nested {
335335 self . tables . set ( self . tcx . body_tables ( id) ) ;
336336 }
337- pprust_hir:: PpAnn :: nested ( self . tcx . hir ( ) , state, nested) ;
337+ pprust_hir:: PpAnn :: nested ( * self . tcx . hir ( ) , state, nested) ;
338338 self . tables . set ( old_tables) ;
339339 }
340340 fn pre ( & self , s : & mut pprust_hir:: State < ' _ > , node : pprust_hir:: AnnNode < ' _ > ) {
0 commit comments