From 1c2e90a9846fa386d8a28415eaef09103c663106 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 22 Jan 2023 13:52:02 -0800 Subject: [PATCH] Make expansion of nested _ and .. patterns edition independent --- src/expand.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/expand.rs b/src/expand.rs index 7747e68..c2cfacb 100644 --- a/src/expand.rs +++ b/src/expand.rs @@ -403,7 +403,10 @@ fn transform_block(context: Context, sig: &mut Signature, block: &mut Block) { } else { quote! { #(#attrs)* - let #pat = #ident; + let #pat = { + let #ident = #ident; + #ident + }; } } }