Skip to content

Commit b535436

Browse files
committed
commit missed files
1 parent 2b455d1 commit b535436

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

tests/source/skip_macro_names_all.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// rustfmt-skip_macro_names: ["*","items"]
2+
3+
macro_rules! items {
4+
($($arg:item)*) => { $($arg)* };
5+
}
6+
7+
// Should skip this invocation
8+
items!(
9+
const _: u8 = 0;
10+
);
11+
12+
// Should also skip this invocation, as the wildcard covers it
13+
use self::items as renamed_items;
14+
renamed_items!(
15+
const _: u8 = 0;
16+
);

tests/target/skip_macro_names_all.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// rustfmt-skip_macro_names: ["*","items"]
2+
3+
macro_rules! items {
4+
($($arg:item)*) => { $($arg)* };
5+
}
6+
7+
// Should skip this invocation
8+
items!(
9+
const _: u8 = 0;
10+
);
11+
12+
// Should also skip this invocation, as the wildcard covers it
13+
use self::items as renamed_items;
14+
renamed_items!(
15+
const _: u8 = 0;
16+
);

0 commit comments

Comments
 (0)