@@ -304,10 +304,10 @@ pub enum SubstructureFields<'a> {
304304 /// variants has any fields).
305305 AllFieldlessEnum ( & ' a ast:: EnumDef ) ,
306306
307- /// Matching variants of the enum: variant index, variant count, ast::Variant,
307+ /// Matching variants of the enum: variant index, ast::Variant,
308308 /// fields: the field name is only non-`None` in the case of a struct
309309 /// variant.
310- EnumMatching ( usize , usize , & ' a ast:: Variant , Vec < FieldInfo > ) ,
310+ EnumMatching ( usize , & ' a ast:: Variant , Vec < FieldInfo > ) ,
311311
312312 /// The tag of an enum. The first field is a `FieldInfo` for the tags, as
313313 /// if they were fields. The second field is the expression to combine the
@@ -1270,7 +1270,7 @@ impl<'a> MethodDef<'a> {
12701270 trait_,
12711271 type_ident,
12721272 nonselflike_args,
1273- & EnumMatching ( 0 , 1 , & variants[ 0 ] , Vec :: new ( ) ) ,
1273+ & EnumMatching ( 0 , & variants[ 0 ] , Vec :: new ( ) ) ,
12741274 ) ;
12751275 }
12761276 }
@@ -1316,7 +1316,7 @@ impl<'a> MethodDef<'a> {
13161316 // expressions for referencing every field of every
13171317 // Self arg, assuming all are instances of VariantK.
13181318 // Build up code associated with such a case.
1319- let substructure = EnumMatching ( index, variants . len ( ) , variant, fields) ;
1319+ let substructure = EnumMatching ( index, variant, fields) ;
13201320 let arm_expr = self
13211321 . call_substructure_method (
13221322 cx,
@@ -1344,7 +1344,7 @@ impl<'a> MethodDef<'a> {
13441344 trait_,
13451345 type_ident,
13461346 nonselflike_args,
1347- & EnumMatching ( 0 , variants . len ( ) , v, Vec :: new ( ) ) ,
1347+ & EnumMatching ( 0 , v, Vec :: new ( ) ) ,
13481348 )
13491349 . into_expr ( cx, span) ,
13501350 )
0 commit comments