Skip to content

Commit

Permalink
Make expansion of nested _ and .. patterns edition independent
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 22, 2023
1 parent 80a9c2c commit 1c2e90a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/expand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}
}
}
Expand Down

0 comments on commit 1c2e90a

Please sign in to comment.