@@ -3,15 +3,14 @@ use rustc_ast::util::parser::{self, AssocOp, Fixity};
33use rustc_ast_pretty:: pp:: Breaks :: { Consistent , Inconsistent } ;
44use rustc_ast_pretty:: pp:: { self , Breaks } ;
55use rustc_ast_pretty:: pprust:: { Comments , PrintState } ;
6+ use rustc_hir as hir;
7+ use rustc_hir:: { GenericArg , GenericParam , GenericParamKind , Node } ;
8+ use rustc_hir:: { GenericBound , PatKind , RangeEnd , TraitBoundModifier } ;
69use rustc_span:: source_map:: { SourceMap , Spanned } ;
710use rustc_span:: symbol:: { kw, IdentPrinter } ;
811use rustc_span:: { self , BytePos , FileName } ;
912use rustc_target:: spec:: abi:: Abi ;
1013
11- use crate :: hir;
12- use crate :: hir:: { GenericArg , GenericParam , GenericParamKind , Node } ;
13- use crate :: hir:: { GenericBound , PatKind , RangeEnd , TraitBoundModifier } ;
14-
1514use std:: borrow:: Cow ;
1615use std:: cell:: Cell ;
1716use std:: vec;
@@ -47,7 +46,7 @@ pub struct NoAnn;
4746impl PpAnn for NoAnn { }
4847pub const NO_ANN : & dyn PpAnn = & NoAnn ;
4948
50- impl PpAnn for hir:: Crate < ' a > {
49+ impl PpAnn for hir:: Crate < ' _ > {
5150 fn try_fetch_item ( & self , item : hir:: HirId ) -> Option < & hir:: Item < ' _ > > {
5251 Some ( self . item ( item) )
5352 }
@@ -1092,7 +1091,7 @@ impl<'a> State<'a> {
10921091 & mut self ,
10931092 qpath : & hir:: QPath < ' _ > ,
10941093 fields : & [ hir:: Field < ' _ > ] ,
1095- wth : & Option < & ' hir hir:: Expr < ' _ > > ,
1094+ wth : & Option < & hir:: Expr < ' _ > > ,
10961095 ) {
10971096 self . print_qpath ( qpath, true ) ;
10981097 self . s . word ( "{" ) ;
0 commit comments