File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
compiler/rustc_builtin_macros/src/deriving/generic Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -1072,7 +1072,6 @@ impl<'a> MethodDef<'a> {
1072
1072
struct_path,
1073
1073
struct_def,
1074
1074
& prefixes,
1075
- ast:: Mutability :: Not ,
1076
1075
use_temporaries,
1077
1076
) ;
1078
1077
@@ -1219,7 +1218,6 @@ impl<'a> MethodDef<'a> {
1219
1218
variant_path,
1220
1219
& variant. data ,
1221
1220
& prefixes,
1222
- ast:: Mutability :: Not ,
1223
1221
use_temporaries,
1224
1222
)
1225
1223
. into_iter ( )
@@ -1453,7 +1451,6 @@ impl<'a> TraitDef<'a> {
1453
1451
struct_path : ast:: Path ,
1454
1452
struct_def : & ' a VariantData ,
1455
1453
prefixes : & [ String ] ,
1456
- mutbl : ast:: Mutability ,
1457
1454
use_temporaries : bool ,
1458
1455
) -> Vec < P < ast:: Pat > > {
1459
1456
prefixes
@@ -1465,7 +1462,7 @@ impl<'a> TraitDef<'a> {
1465
1462
let binding_mode = if use_temporaries {
1466
1463
ast:: BindingMode :: ByValue ( ast:: Mutability :: Not )
1467
1464
} else {
1468
- ast:: BindingMode :: ByRef ( mutbl )
1465
+ ast:: BindingMode :: ByRef ( ast :: Mutability :: Not )
1469
1466
} ;
1470
1467
let ident = self . mk_pattern_ident ( prefix, i) ;
1471
1468
let path = ident. with_span_pos ( sp) ;
You can’t perform that action at this time.
0 commit comments