@@ -310,10 +310,10 @@ pub enum SubstructureFields<'a> {
310310     /// variants has any fields). 
311311     AllFieldlessEnum ( & ' a  ast:: EnumDef ) , 
312312
313-     /// Matching variants of the enum: variant index, variant count,  ast::Variant, 
313+     /// Matching variants of the enum: variant index, ast::Variant, 
314314     /// fields: the field name is only non-`None` in the case of a struct 
315315     /// variant. 
316-      EnumMatching ( usize ,  usize ,   & ' a  ast:: Variant ,  Vec < FieldInfo > ) , 
316+      EnumMatching ( usize ,  & ' a  ast:: Variant ,  Vec < FieldInfo > ) , 
317317
318318    /// The tag of an enum. The first field is a `FieldInfo` for the tags, as 
319319     /// if they were fields. The second field is the expression to combine the 
@@ -1272,7 +1272,7 @@ impl<'a> MethodDef<'a> {
12721272                    trait_, 
12731273                    type_ident, 
12741274                    nonselflike_args, 
1275-                     & EnumMatching ( 0 ,  1 ,   & variants[ 0 ] ,  Vec :: new ( ) ) , 
1275+                     & EnumMatching ( 0 ,  & variants[ 0 ] ,  Vec :: new ( ) ) , 
12761276                ) ; 
12771277            } 
12781278        } 
@@ -1318,7 +1318,7 @@ impl<'a> MethodDef<'a> {
13181318                // expressions for referencing every field of every 
13191319                // Self arg, assuming all are instances of VariantK. 
13201320                // Build up code associated with such a case. 
1321-                 let  substructure = EnumMatching ( index,  variants . len ( ) ,   variant,  fields) ; 
1321+                 let  substructure = EnumMatching ( index,  variant,  fields) ; 
13221322                let  arm_expr = self 
13231323                    . call_substructure_method ( 
13241324                        cx, 
@@ -1346,7 +1346,7 @@ impl<'a> MethodDef<'a> {
13461346                        trait_, 
13471347                        type_ident, 
13481348                        nonselflike_args, 
1349-                         & EnumMatching ( 0 ,  variants . len ( ) ,   v,  Vec :: new ( ) ) , 
1349+                         & EnumMatching ( 0 ,  v,  Vec :: new ( ) ) , 
13501350                    ) 
13511351                    . into_expr ( cx,  span) , 
13521352                ) 
0 commit comments