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.
1 parent 46ab144 commit 1139e6eCopy full SHA for 1139e6e
src/matches.rs
@@ -302,8 +302,6 @@ fn block_can_be_flattened<'a>(
302
if !is_unsafe_block(block)
303
&& !context.inside_macro()
304
&& is_simple_block(context, block, Some(&expr.attrs))
305
- // Don't flatten a block containing a macro invocation,
306
- // since it may expand to a statement
307
&& !stmt_is_expr_mac(&block.stmts[0]) =>
308
{
309
Some(&*block)
0 commit comments