File tree Expand file tree Collapse file tree 7 files changed +28
-37
lines changed Expand file tree Collapse file tree 7 files changed +28
-37
lines changed Original file line number Diff line number Diff line change @@ -1374,7 +1374,10 @@ fn format_empty_struct_or_tuple(
1374
1374
result. push_str ( & offset. to_string_with_newline ( context. config ) )
1375
1375
}
1376
1376
result. push_str ( opener) ;
1377
- match rewrite_missing_comment ( span, Shape :: indented ( offset, context. config ) , context) {
1377
+
1378
+ // indented shape for proper indenting of multi-line comments
1379
+ let shape = Shape :: indented ( offset. block_indent ( context. config ) , context. config ) ;
1380
+ match rewrite_missing_comment ( span, shape, context) {
1378
1381
Some ( ref s) if s. is_empty ( ) => ( ) ,
1379
1382
Some ( ref s) => {
1380
1383
if !is_single_line ( s) || first_line_contains_single_line_comment ( s) {
Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ pub enum E {
13
13
}
14
14
15
15
pub enum E2 {
16
- // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
17
- // Expand as needed, numbers should be ascending according to the stage
18
- // through the inclusion pipeline, or according to the descriptions
16
+ // Expand as needed, numbers should be ascending according to the stage
17
+ // through the inclusion pipeline, or according to the descriptions
19
18
}
20
19
21
20
pub enum E3 {
@@ -39,9 +38,8 @@ pub struct S {
39
38
}
40
39
41
40
pub struct S2 {
42
- // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
43
- // Expand as needed, numbers should be ascending according to the stage
44
- // through the inclusion pipeline, or according to the descriptions
41
+ // Expand as needed, numbers should be ascending according to the stage
42
+ // through the inclusion pipeline, or according to the descriptions
45
43
}
46
44
47
45
pub struct S3 {
Original file line number Diff line number Diff line change @@ -14,9 +14,8 @@ pub enum E {
14
14
}
15
15
16
16
pub enum E2 {
17
- // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
18
- // Expand as needed, numbers should be ascending according to the stage
19
- // through the inclusion pipeline, or according to the descriptions
17
+ // Expand as needed, numbers should be ascending according to the stage
18
+ // through the inclusion pipeline, or according to the descriptions
20
19
}
21
20
22
21
pub enum E3 {
@@ -40,9 +39,8 @@ pub struct S {
40
39
}
41
40
42
41
pub struct S2 {
43
- // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
44
- // Expand as needed, numbers should be ascending according to the stage
45
- // through the inclusion pipeline, or according to the descriptions
42
+ // Expand as needed, numbers should be ascending according to the stage
43
+ // through the inclusion pipeline, or according to the descriptions
46
44
}
47
45
48
46
pub struct S3 {
Original file line number Diff line number Diff line change @@ -25,9 +25,8 @@ pub enum E {
25
25
}
26
26
27
27
pub enum E2 {
28
- // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
29
- // Expand as needed, numbers should be ascending according to the stage
30
- // through the inclusion pipeline, or according to the descriptions
28
+ // Expand as needed, numbers should be ascending according to the stage
29
+ // through the inclusion pipeline, or according to the descriptions
31
30
}
32
31
33
32
pub struct S {
@@ -42,9 +41,8 @@ pub struct S {
42
41
}
43
42
44
43
pub struct S2 {
45
- // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
46
- // Expand as needed, numbers should be ascending according to the stage
47
- // through the inclusion pipeline, or according to the descriptions
44
+ // Expand as needed, numbers should be ascending according to the stage
45
+ // through the inclusion pipeline, or according to the descriptions
48
46
}
49
47
50
48
fn foo (
Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ pub enum E {
13
13
}
14
14
15
15
pub enum E2 {
16
- // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
17
- // Expand as needed, numbers should be ascending according to the stage
18
- // through the inclusion pipeline, or according to the descriptions
16
+ // Expand as needed, numbers should be ascending according to the stage
17
+ // through the inclusion pipeline, or according to the descriptions
19
18
}
20
19
21
20
pub struct S {
@@ -30,9 +29,8 @@ pub struct S {
30
29
}
31
30
32
31
pub struct S2 {
33
- // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
34
- // Expand as needed, numbers should be ascending according to the stage
35
- // through the inclusion pipeline, or according to the descriptions
32
+ // Expand as needed, numbers should be ascending according to the stage
33
+ // through the inclusion pipeline, or according to the descriptions
36
34
}
37
35
38
36
fn foo (
Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ pub enum E {
13
13
}
14
14
15
15
pub enum E2 {
16
- // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
17
- // Expand as needed, numbers should be ascending according to the stage
18
- // through the inclusion pipeline, or according to the descriptions
16
+ // Expand as needed, numbers should be ascending according to the stage
17
+ // through the inclusion pipeline, or according to the descriptions
19
18
}
20
19
21
20
pub enum E3 {
@@ -41,9 +40,8 @@ pub struct S {
41
40
}
42
41
43
42
pub struct S2 {
44
- // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
45
- // Expand as needed, numbers should be ascending according to the stage
46
- // through the inclusion pipeline, or according to the descriptions
43
+ // Expand as needed, numbers should be ascending according to the stage
44
+ // through the inclusion pipeline, or according to the descriptions
47
45
}
48
46
49
47
pub struct S3 {
Original file line number Diff line number Diff line change @@ -14,9 +14,8 @@ pub enum E {
14
14
}
15
15
16
16
pub enum E2 {
17
- // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
18
- // Expand as needed, numbers should be ascending according to the stage
19
- // through the inclusion pipeline, or according to the descriptions
17
+ // Expand as needed, numbers should be ascending according to the stage
18
+ // through the inclusion pipeline, or according to the descriptions
20
19
}
21
20
22
21
pub enum E3 {
@@ -42,9 +41,8 @@ pub struct S {
42
41
}
43
42
44
43
pub struct S2 {
45
- // This can be changed once https://github.com/rust-lang/rustfmt/issues/4854 is fixed
46
- // Expand as needed, numbers should be ascending according to the stage
47
- // through the inclusion pipeline, or according to the descriptions
44
+ // Expand as needed, numbers should be ascending according to the stage
45
+ // through the inclusion pipeline, or according to the descriptions
48
46
}
49
47
50
48
pub struct S3 {
You can’t perform that action at this time.
0 commit comments