We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ec0750 + 8ffe414 commit 35504acCopy full SHA for 35504ac
src/macros.rs
@@ -274,6 +274,9 @@ pub fn rewrite_macro_inner(
274
DelimToken::Paren if position == MacroPosition::Item => {
275
Some(format!("{}();", macro_name))
276
}
277
+ DelimToken::Bracket if position == MacroPosition::Item => {
278
+ Some(format!("{}[];", macro_name))
279
+ }
280
DelimToken::Paren => Some(format!("{}()", macro_name)),
281
DelimToken::Bracket => Some(format!("{}[]", macro_name)),
282
DelimToken::Brace => Some(format!("{} {{}}", macro_name)),
tests/target/issue-3499.rs
@@ -0,0 +1 @@
1
+test![];
0 commit comments