diff --git a/tests/target/configs/struct_field_align_threshold/20.rs b/tests/target/configs/struct_field_align_threshold/20.rs index b84afc56835..f6ee4ed1f0a 100644 --- a/tests/target/configs/struct_field_align_threshold/20.rs +++ b/tests/target/configs/struct_field_align_threshold/20.rs @@ -255,8 +255,12 @@ struct Foo { struct Foo { // trailing space -> } -struct Foo { /* comment */ } -struct Foo( /* comment */ ); +struct Foo { + // comment +} +struct Foo( + // comment +); struct LongStruct { a: A, diff --git a/tests/target/issue-977.rs b/tests/target/issue-977.rs index 9420054449d..c4bc82d85d4 100644 --- a/tests/target/issue-977.rs +++ b/tests/target/issue-977.rs @@ -4,7 +4,9 @@ trait NameC { // comment } -struct FooC { /* comment */ } +struct FooC { + // comment +} enum MooC { // comment } diff --git a/tests/target/structs.rs b/tests/target/structs.rs index 59a57a9b5b4..7f9ef1e6164 100644 --- a/tests/target/structs.rs +++ b/tests/target/structs.rs @@ -228,8 +228,12 @@ struct Foo { struct Foo { // trailing space -> } -struct Foo { /* comment */ } -struct Foo( /* comment */ ); +struct Foo { + // comment +} +struct Foo( + // comment +); struct LongStruct { a: A, diff --git a/tests/target/unions.rs b/tests/target/unions.rs index eb6c3ae7e15..6de682297af 100644 --- a/tests/target/unions.rs +++ b/tests/target/unions.rs @@ -136,7 +136,9 @@ union Foo { union Foo { // trailing space -> } -union Foo { /* comment */ } +union Foo { + // comment +} union LongUnion { a: A,