File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 11// rustfmt-imports_granularity: Item
2+ // rustfmt-group_imports: One
23
4+ // Confirm that attributes are duplicated to all items in the use statement
35#[ cfg( feature = "foo" ) ]
46use std:: collections:: {
57 HashMap ,
68 HashSet ,
79} ;
10+
11+ // Separate the imports below from the ones above
12+ const A : usize = 0 ;
13+
14+ // Copying attrs works with import grouping as well
15+ #[ cfg( feature = "foo" ) ]
16+ use std:: collections:: {
17+ HashMap ,
18+ HashSet ,
19+ } ;
20+
21+ #[ cfg( feature = "spam" ) ]
22+ use qux:: { bar, baz} ;
Original file line number Diff line number Diff line change 11// rustfmt-imports_granularity: Item
2+ // rustfmt-group_imports: One
23
4+ // Confirm that attributes are duplicated to all items in the use statement
5+ #[ cfg( feature = "foo" ) ]
6+ use std:: collections:: HashMap ;
7+ #[ cfg( feature = "foo" ) ]
8+ use std:: collections:: HashSet ;
9+
10+ // Separate the imports below from the ones above
11+ const A : usize = 0 ;
12+
13+ // Copying attrs works with import grouping as well
14+ #[ cfg( feature = "spam" ) ]
15+ use qux:: bar;
16+ #[ cfg( feature = "spam" ) ]
17+ use qux:: baz;
318#[ cfg( feature = "foo" ) ]
419use std:: collections:: HashMap ;
520#[ cfg( feature = "foo" ) ]
You can’t perform that action at this time.
0 commit comments