Skip to content

Commit 1c2e90a

Browse files
committed
Make expansion of nested _ and .. patterns edition independent
1 parent 80a9c2c commit 1c2e90a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/expand.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,10 @@ fn transform_block(context: Context, sig: &mut Signature, block: &mut Block) {
403403
} else {
404404
quote! {
405405
#(#attrs)*
406-
let #pat = #ident;
406+
let #pat = {
407+
let #ident = #ident;
408+
#ident
409+
};
407410
}
408411
}
409412
}

0 commit comments

Comments
 (0)