Skip to content

Commit 31ba496

Browse files
rchaser53topecongiro
authored andcommitted
fix test (#3966)
1 parent cc0b060 commit 31ba496

File tree

9 files changed

+14
-0
lines changed

9 files changed

+14
-0
lines changed

tests/config/issue-3933.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ignore = [
2+
"tests/**/issue-3933/imp-a.rs",
3+
"tests/**/issue-3933/imp-b.rs",
4+
"tests/**/issue-3933/utils.rs"
5+
]
6+
recursive = true

tests/source/issue-3933/imp-a.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// rustfmt-config: issue-3933.toml
12
mod utils;
23
pub
34
struct A;

tests/source/issue-3933/imp-b.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
// rustfmt-config: issue-3933.toml
12
pub struct B;

tests/source/issue-3933/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// rustfmt-config: issue-3933.toml
12
#[cfg_attr(windows, path = "imp-a.rs" )]
23
#[cfg_attr(not(windows), path = "imp-b.rs")]
34
mod imp;

tests/source/issue-3933/utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// rustfmt-config: issue-3933.toml
12
pub fn fuga() {
23

34

tests/target/issue-3933/imp-a.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
// rustfmt-config: issue-3933.toml
12
mod utils;
23
pub struct A;

tests/target/issue-3933/imp-b.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
// rustfmt-config: issue-3933.toml
12
pub struct B;

tests/target/issue-3933/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// rustfmt-config: issue-3933.toml
12
#[cfg_attr(windows, path = "imp-a.rs")]
23
#[cfg_attr(not(windows), path = "imp-b.rs")]
34
mod imp;

tests/target/issue-3933/utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
// rustfmt-config: issue-3933.toml
12
pub fn fuga() {}

0 commit comments

Comments
 (0)