File tree 10 files changed +150
-0
lines changed
10 files changed +150
-0
lines changed Original file line number Diff line number Diff line change
1
+ // rustfmt-imports_granularity: Crate
2
+
3
+ // See https://github.com/rust-lang/rustfmt/issues/3984
4
+ use a:: { item /* comment */ } ;
5
+ use b:: {
6
+ a,
7
+ // comment
8
+ item,
9
+ } ;
10
+ use c:: item /* comment */ ;
11
+ use d:: item; // really long comment (with `use` exactly 100 characters) ____________________________
12
+
13
+ use std:: e:: { /* it's a comment! */ bar /* and another */ } ;
14
+ use std:: f:: { /* it's a comment! */ bar} ;
15
+ use std:: g:: { bar /* and another */ } ;
Original file line number Diff line number Diff line change
1
+ // rustfmt-imports_granularity: Item
2
+
3
+ // See https://github.com/rust-lang/rustfmt/issues/3984
4
+ use a:: { item /* comment */ } ;
5
+ use b:: {
6
+ a,
7
+ // comment
8
+ item,
9
+ } ;
10
+ use c:: item /* comment */ ;
11
+ use d:: item; // really long comment (with `use` exactly 100 characters) ____________________________
12
+
13
+ use std:: e:: { /* it's a comment! */ bar /* and another */ } ;
14
+ use std:: f:: { /* it's a comment! */ bar} ;
15
+ use std:: g:: { bar /* and another */ } ;
Original file line number Diff line number Diff line change
1
+ // rustfmt-imports_granularity: Module
2
+
3
+ // See https://github.com/rust-lang/rustfmt/issues/3984
4
+ use a:: { item /* comment */ } ;
5
+ use b:: {
6
+ a,
7
+ // comment
8
+ item,
9
+ } ;
10
+ use c:: item /* comment */ ;
11
+ use d:: item; // really long comment (with `use` exactly 100 characters) ____________________________
12
+
13
+ use std:: e:: { /* it's a comment! */ bar /* and another */ } ;
14
+ use std:: f:: { /* it's a comment! */ bar} ;
15
+ use std:: g:: { bar /* and another */ } ;
Original file line number Diff line number Diff line change
1
+ // rustfmt-imports_granularity: One
2
+
3
+ // See https://github.com/rust-lang/rustfmt/issues/3984
4
+ use a:: { item /* comment */ } ;
5
+ use b:: {
6
+ a,
7
+ // comment
8
+ item,
9
+ } ;
10
+ use c:: item /* comment */ ;
11
+ use d:: item; // really long comment (with `use` exactly 100 characters) ____________________________
12
+
13
+ use std:: e:: { /* it's a comment! */ bar /* and another */ } ;
14
+ use std:: f:: { /* it's a comment! */ bar} ;
15
+ use std:: g:: { bar /* and another */ } ;
Original file line number Diff line number Diff line change
1
+ // rustfmt-imports_granularity: Preserve
2
+
3
+ // See https://github.com/rust-lang/rustfmt/issues/3984
4
+ use a:: { item /* comment */ } ;
5
+ use b:: {
6
+ a,
7
+ // comment
8
+ item,
9
+ } ;
10
+ use c:: item /* comment */ ;
11
+ use d:: item; // really long comment (with `use` exactly 100 characters) ____________________________
12
+
13
+ use std:: e:: { /* it's a comment! */ bar /* and another */ } ;
14
+ use std:: f:: { /* it's a comment! */ bar} ;
15
+ use std:: g:: { bar /* and another */ } ;
Original file line number Diff line number Diff line change
1
+ // rustfmt-imports_granularity: Crate
2
+
3
+ // See https://github.com/rust-lang/rustfmt/issues/3984
4
+ use a:: { item /* comment */ } ;
5
+ use b:: {
6
+ a,
7
+ // comment
8
+ item,
9
+ } ;
10
+ use c:: item; /* comment */
11
+ use d:: item; // really long comment (with `use` exactly 100 characters) ____________________________
12
+
13
+ use std:: e:: { /* it's a comment! */ bar /* and another */ } ;
14
+ use std:: f:: { /* it's a comment! */ bar} ;
15
+ use std:: g:: { bar /* and another */ } ;
Original file line number Diff line number Diff line change
1
+ // rustfmt-imports_granularity: Item
2
+
3
+ // See https://github.com/rust-lang/rustfmt/issues/3984
4
+ use a:: { item /* comment */ } ;
5
+ use b:: {
6
+ a,
7
+ // comment
8
+ item,
9
+ } ;
10
+ use c:: item; /* comment */
11
+ use d:: item; // really long comment (with `use` exactly 100 characters) ____________________________
12
+
13
+ use std:: e:: { /* it's a comment! */ bar /* and another */ } ;
14
+ use std:: f:: { /* it's a comment! */ bar} ;
15
+ use std:: g:: { bar /* and another */ } ;
Original file line number Diff line number Diff line change
1
+ // rustfmt-imports_granularity: Module
2
+
3
+ // See https://github.com/rust-lang/rustfmt/issues/3984
4
+ use a:: { item /* comment */ } ;
5
+ use b:: {
6
+ a,
7
+ // comment
8
+ item,
9
+ } ;
10
+ use c:: item; /* comment */
11
+ use d:: item; // really long comment (with `use` exactly 100 characters) ____________________________
12
+
13
+ use std:: e:: { /* it's a comment! */ bar /* and another */ } ;
14
+ use std:: f:: { /* it's a comment! */ bar} ;
15
+ use std:: g:: { bar /* and another */ } ;
Original file line number Diff line number Diff line change
1
+ // rustfmt-imports_granularity: One
2
+
3
+ // See https://github.com/rust-lang/rustfmt/issues/3984
4
+ use a:: { item /* comment */ } ;
5
+ use b:: {
6
+ a,
7
+ // comment
8
+ item,
9
+ } ;
10
+ use c:: item; /* comment */
11
+ use d:: item; // really long comment (with `use` exactly 100 characters) ____________________________
12
+
13
+ use std:: e:: { /* it's a comment! */ bar /* and another */ } ;
14
+ use std:: f:: { /* it's a comment! */ bar} ;
15
+ use std:: g:: { bar /* and another */ } ;
Original file line number Diff line number Diff line change
1
+ // rustfmt-imports_granularity: Preserve
2
+
3
+ // See https://github.com/rust-lang/rustfmt/issues/3984
4
+ use a:: { item /* comment */ } ;
5
+ use b:: {
6
+ a,
7
+ // comment
8
+ item,
9
+ } ;
10
+ use c:: item; /* comment */
11
+ use d:: item; // really long comment (with `use` exactly 100 characters) ____________________________
12
+
13
+ use std:: e:: { /* it's a comment! */ bar /* and another */ } ;
14
+ use std:: f:: { /* it's a comment! */ bar} ;
15
+ use std:: g:: { bar /* and another */ } ;
You can’t perform that action at this time.
0 commit comments