From 3432807ac2c9118058e61961f1d14bdb709004f5 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Sat, 28 Apr 2018 14:07:10 +0900 Subject: [PATCH] Temporarily fix tests cc #2655. --- tests/target/configs/struct_field_align_threshold/20.rs | 8 ++++++-- tests/target/issue-977.rs | 4 +++- tests/target/structs.rs | 8 ++++++-- tests/target/unions.rs | 4 +++- 4 files changed, 18 insertions(+), 6 deletions(-) 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,