File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
compiler/rustc_ast_lowering/src Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1096,9 +1096,12 @@ impl<'hir> LoweringContext<'_, 'hir> {
1096
1096
// Check if this is a binding pattern, if so, we can optimize and avoid adding a
1097
1097
// `let <pat> = __argN;` statement. In this case, we do not rename the parameter.
1098
1098
let ( ident, is_simple_parameter) = match parameter. pat . kind {
1099
- hir:: PatKind :: Binding ( hir:: BindingAnnotation :: Unannotated , _, ident, _) => {
1100
- ( ident, true )
1101
- }
1099
+ hir:: PatKind :: Binding (
1100
+ hir:: BindingAnnotation :: Unannotated | hir:: BindingAnnotation :: Mutable ,
1101
+ _,
1102
+ ident,
1103
+ _,
1104
+ ) => ( ident, true ) ,
1102
1105
_ => {
1103
1106
// Replace the ident for bindings that aren't simple.
1104
1107
let name = format ! ( "__arg{}" , index) ;
You can’t perform that action at this time.
0 commit comments