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
- use rustc_ast:: ast:: { InlineAsmOperand , InlineAsmRegOrRegClass } ;
8
- use rustc_ast:: ast:: { InlineAsmOptions , InlineAsmTemplatePiece } ;
9
4
use rustc_ast:: attr;
10
5
use rustc_ast:: ptr:: P ;
11
6
use rustc_ast:: token:: { self , BinOpToken , CommentKind , DelimToken , Nonterminal , Token , TokenKind } ;
12
7
use rustc_ast:: tokenstream:: { TokenStream , TokenTree } ;
13
8
use rustc_ast:: util:: classify;
14
9
use rustc_ast:: util:: comments:: { gather_comments, Comment , CommentStyle } ;
15
10
use rustc_ast:: util:: parser:: { self , AssocOp , Fixity } ;
11
+ use rustc_ast:: { self as ast, BlockCheckMode , PatKind , RangeEnd , RangeSyntax } ;
12
+ use rustc_ast:: { GenericArg , MacArgs } ;
13
+ use rustc_ast:: { GenericBound , SelfKind , TraitBoundModifier } ;
14
+ use rustc_ast:: { InlineAsmOperand , InlineAsmRegOrRegClass } ;
15
+ use rustc_ast:: { InlineAsmOptions , InlineAsmTemplatePiece } ;
16
16
use rustc_span:: edition:: Edition ;
17
17
use rustc_span:: source_map:: { SourceMap , Spanned } ;
18
18
use rustc_span:: symbol:: { kw, sym, Ident , IdentPrinter , Symbol } ;
@@ -902,7 +902,7 @@ impl<'a> State<'a> {
902
902
}
903
903
}
904
904
905
- crate fn print_foreign_mod ( & mut self , nmod : & ast:: ForeignMod , attrs : & [ Attribute ] ) {
905
+ crate fn print_foreign_mod ( & mut self , nmod : & ast:: ForeignMod , attrs : & [ ast :: Attribute ] ) {
906
906
self . print_inner_attributes ( attrs) ;
907
907
for item in & nmod. items {
908
908
self . print_foreign_item ( item) ;
@@ -1666,7 +1666,7 @@ impl<'a> State<'a> {
1666
1666
}
1667
1667
}
1668
1668
1669
- fn print_expr_vec ( & mut self , exprs : & [ P < ast:: Expr > ] , attrs : & [ Attribute ] ) {
1669
+ fn print_expr_vec ( & mut self , exprs : & [ P < ast:: Expr > ] , attrs : & [ ast :: Attribute ] ) {
1670
1670
self . ibox ( INDENT_UNIT ) ;
1671
1671
self . s . word ( "[" ) ;
1672
1672
self . print_inner_attributes_inline ( attrs) ;
@@ -1679,7 +1679,7 @@ impl<'a> State<'a> {
1679
1679
& mut self ,
1680
1680
element : & ast:: Expr ,
1681
1681
count : & ast:: AnonConst ,
1682
- attrs : & [ Attribute ] ,
1682
+ attrs : & [ ast :: Attribute ] ,
1683
1683
) {
1684
1684
self . ibox ( INDENT_UNIT ) ;
1685
1685
self . s . word ( "[" ) ;
@@ -1696,7 +1696,7 @@ impl<'a> State<'a> {
1696
1696
path : & ast:: Path ,
1697
1697
fields : & [ ast:: Field ] ,
1698
1698
wth : & Option < P < ast:: Expr > > ,
1699
- attrs : & [ Attribute ] ,
1699
+ attrs : & [ ast :: Attribute ] ,
1700
1700
) {
1701
1701
self . print_path ( path, true , 0 ) ;
1702
1702
self . s . word ( "{" ) ;
@@ -1736,7 +1736,7 @@ impl<'a> State<'a> {
1736
1736
self . s . word ( "}" ) ;
1737
1737
}
1738
1738
1739
- fn print_expr_tup ( & mut self , exprs : & [ P < ast:: Expr > ] , attrs : & [ Attribute ] ) {
1739
+ fn print_expr_tup ( & mut self , exprs : & [ P < ast:: Expr > ] , attrs : & [ ast :: Attribute ] ) {
1740
1740
self . popen ( ) ;
1741
1741
self . print_inner_attributes_inline ( attrs) ;
1742
1742
self . commasep_exprs ( Inconsistent , & exprs[ ..] ) ;
0 commit comments