1
1
use crate :: pp:: Breaks :: { Consistent , Inconsistent } ;
2
2
use crate :: pp:: { self , Breaks } ;
3
3
4
- use rustc_ast:: ast:: { self , BlockCheckMode , PatKind , RangeEnd , RangeSyntax } ;
5
- use rustc_ast:: ast:: { Attribute , GenericArg , MacArgs } ;
6
- use rustc_ast:: ast:: { GenericBound , SelfKind , TraitBoundModifier } ;
7
4
use rustc_ast:: attr;
8
5
use rustc_ast:: ptr:: P ;
9
6
use rustc_ast:: token:: { self , BinOpToken , DelimToken , Nonterminal , Token , TokenKind } ;
10
7
use rustc_ast:: tokenstream:: { self , TokenStream , TokenTree } ;
11
8
use rustc_ast:: util:: parser:: { self , AssocOp , Fixity } ;
12
9
use rustc_ast:: util:: { classify, comments} ;
10
+ use rustc_ast:: { self as ast, BlockCheckMode , PatKind , RangeEnd , RangeSyntax } ;
11
+ use rustc_ast:: { GenericArg , MacArgs } ;
12
+ use rustc_ast:: { GenericBound , SelfKind , TraitBoundModifier } ;
13
13
use rustc_span:: edition:: Edition ;
14
14
use rustc_span:: source_map:: { SourceMap , Spanned } ;
15
15
use rustc_span:: symbol:: { kw, sym, IdentPrinter } ;
@@ -855,7 +855,7 @@ impl<'a> State<'a> {
855
855
}
856
856
}
857
857
858
- crate fn print_foreign_mod ( & mut self , nmod : & ast:: ForeignMod , attrs : & [ Attribute ] ) {
858
+ crate fn print_foreign_mod ( & mut self , nmod : & ast:: ForeignMod , attrs : & [ ast :: Attribute ] ) {
859
859
self . print_inner_attributes ( attrs) ;
860
860
for item in & nmod. items {
861
861
self . print_foreign_item ( item) ;
@@ -1619,7 +1619,7 @@ impl<'a> State<'a> {
1619
1619
}
1620
1620
}
1621
1621
1622
- fn print_expr_vec ( & mut self , exprs : & [ P < ast:: Expr > ] , attrs : & [ Attribute ] ) {
1622
+ fn print_expr_vec ( & mut self , exprs : & [ P < ast:: Expr > ] , attrs : & [ ast :: Attribute ] ) {
1623
1623
self . ibox ( INDENT_UNIT ) ;
1624
1624
self . s . word ( "[" ) ;
1625
1625
self . print_inner_attributes_inline ( attrs) ;
@@ -1632,7 +1632,7 @@ impl<'a> State<'a> {
1632
1632
& mut self ,
1633
1633
element : & ast:: Expr ,
1634
1634
count : & ast:: AnonConst ,
1635
- attrs : & [ Attribute ] ,
1635
+ attrs : & [ ast :: Attribute ] ,
1636
1636
) {
1637
1637
self . ibox ( INDENT_UNIT ) ;
1638
1638
self . s . word ( "[" ) ;
@@ -1649,7 +1649,7 @@ impl<'a> State<'a> {
1649
1649
path : & ast:: Path ,
1650
1650
fields : & [ ast:: Field ] ,
1651
1651
wth : & Option < P < ast:: Expr > > ,
1652
- attrs : & [ Attribute ] ,
1652
+ attrs : & [ ast :: Attribute ] ,
1653
1653
) {
1654
1654
self . print_path ( path, true , 0 ) ;
1655
1655
self . s . word ( "{" ) ;
@@ -1689,7 +1689,7 @@ impl<'a> State<'a> {
1689
1689
self . s . word ( "}" ) ;
1690
1690
}
1691
1691
1692
- fn print_expr_tup ( & mut self , exprs : & [ P < ast:: Expr > ] , attrs : & [ Attribute ] ) {
1692
+ fn print_expr_tup ( & mut self , exprs : & [ P < ast:: Expr > ] , attrs : & [ ast :: Attribute ] ) {
1693
1693
self . popen ( ) ;
1694
1694
self . print_inner_attributes_inline ( attrs) ;
1695
1695
self . commasep_exprs ( Inconsistent , & exprs[ ..] ) ;
0 commit comments