Skip to content

Commit

Permalink
Add additional test cases for issue 4984
Browse files Browse the repository at this point in the history
  • Loading branch information
ytmimi authored and calebcartwright committed Oct 6, 2021
1 parent 40f4993 commit 365a2f8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/source/issue-4984/multiple_comments_within.rs
@@ -0,0 +1,8 @@
#[derive(
/* ---------- Some really important comment that just had to go inside the derive --------- */
Debug, Clone,/* Another comment */Eq, PartialEq,
)]
struct Foo {
a: i32,
b: T,
}
11 changes: 11 additions & 0 deletions tests/target/issue-4984/multiple_comments_within.rs
@@ -0,0 +1,11 @@
#[derive(
/* ---------- Some really important comment that just had to go inside the derive --------- */
Debug,
Clone,
/* Another comment */ Eq,
PartialEq,
)]
struct Foo {
a: i32,
b: T,
}
5 changes: 5 additions & 0 deletions tests/target/issue-4984/should_not_change.rs
@@ -0,0 +1,5 @@
#[derive(Clone, Debug, Eq, PartialEq)]
struct Foo;

#[derive(Clone)]
struct Bar;

0 comments on commit 365a2f8

Please sign in to comment.