@@ -247,12 +247,7 @@ pub struct MethodDef<'a> {
247
247
pub struct Substructure < ' a > {
248
248
/// ident of self
249
249
pub type_ident : Ident ,
250
- /// dereferenced access to any [`Self_`] or [`Ptr(Self_, _)`][ptr] arguments
251
- ///
252
- /// [`Self_`]: ty::Ty::Self_
253
- /// [ptr]: ty::Ty::Ptr
254
- pub self_args : & ' a [ P < Expr > ] ,
255
- /// verbatim access to any other arguments
250
+ /// verbatim access to any non-self arguments
256
251
pub nonself_args : & ' a [ P < Expr > ] ,
257
252
pub fields : & ' a SubstructureFields < ' a > ,
258
253
}
@@ -753,7 +748,6 @@ impl<'a> TraitDef<'a> {
753
748
self ,
754
749
struct_def,
755
750
type_ident,
756
- & self_args,
757
751
& nonself_args,
758
752
)
759
753
} else {
@@ -802,7 +796,6 @@ impl<'a> TraitDef<'a> {
802
796
self ,
803
797
enum_def,
804
798
type_ident,
805
- & self_args,
806
799
& nonself_args,
807
800
)
808
801
} else {
@@ -830,12 +823,11 @@ impl<'a> MethodDef<'a> {
830
823
cx : & mut ExtCtxt < ' _ > ,
831
824
trait_ : & TraitDef < ' _ > ,
832
825
type_ident : Ident ,
833
- self_args : & [ P < Expr > ] ,
834
826
nonself_args : & [ P < Expr > ] ,
835
827
fields : & SubstructureFields < ' _ > ,
836
828
) -> P < Expr > {
837
829
let span = trait_. span ;
838
- let substructure = Substructure { type_ident, self_args , nonself_args, fields } ;
830
+ let substructure = Substructure { type_ident, nonself_args, fields } ;
839
831
let mut f = self . combine_substructure . borrow_mut ( ) ;
840
832
let f: & mut CombineSubstructureFunc < ' _ > = & mut * f;
841
833
f ( cx, span, & substructure)
@@ -1053,7 +1045,6 @@ impl<'a> MethodDef<'a> {
1053
1045
cx,
1054
1046
trait_,
1055
1047
type_ident,
1056
- self_args,
1057
1048
nonself_args,
1058
1049
& Struct ( struct_def, fields) ,
1059
1050
) ;
@@ -1074,7 +1065,6 @@ impl<'a> MethodDef<'a> {
1074
1065
trait_ : & TraitDef < ' _ > ,
1075
1066
struct_def : & VariantData ,
1076
1067
type_ident : Ident ,
1077
- self_args : & [ P < Expr > ] ,
1078
1068
nonself_args : & [ P < Expr > ] ,
1079
1069
) -> P < Expr > {
1080
1070
let summary = trait_. summarise_struct ( cx, struct_def) ;
@@ -1083,7 +1073,6 @@ impl<'a> MethodDef<'a> {
1083
1073
cx,
1084
1074
trait_,
1085
1075
type_ident,
1086
- self_args,
1087
1076
nonself_args,
1088
1077
& StaticStruct ( struct_def, summary) ,
1089
1078
)
@@ -1267,7 +1256,6 @@ impl<'a> MethodDef<'a> {
1267
1256
cx,
1268
1257
trait_,
1269
1258
type_ident,
1270
- & self_args[ ..] ,
1271
1259
nonself_args,
1272
1260
& substructure,
1273
1261
) ;
@@ -1286,7 +1274,6 @@ impl<'a> MethodDef<'a> {
1286
1274
cx,
1287
1275
trait_,
1288
1276
type_ident,
1289
- & self_args[ ..] ,
1290
1277
nonself_args,
1291
1278
& substructure,
1292
1279
) )
@@ -1357,7 +1344,6 @@ impl<'a> MethodDef<'a> {
1357
1344
cx,
1358
1345
trait_,
1359
1346
type_ident,
1360
- & self_args[ ..] ,
1361
1347
nonself_args,
1362
1348
& catch_all_substructure,
1363
1349
) ;
@@ -1455,7 +1441,6 @@ impl<'a> MethodDef<'a> {
1455
1441
trait_ : & TraitDef < ' _ > ,
1456
1442
enum_def : & EnumDef ,
1457
1443
type_ident : Ident ,
1458
- self_args : & [ P < Expr > ] ,
1459
1444
nonself_args : & [ P < Expr > ] ,
1460
1445
) -> P < Expr > {
1461
1446
let summary = enum_def
@@ -1471,7 +1456,6 @@ impl<'a> MethodDef<'a> {
1471
1456
cx,
1472
1457
trait_,
1473
1458
type_ident,
1474
- self_args,
1475
1459
nonself_args,
1476
1460
& StaticEnum ( enum_def, summary) ,
1477
1461
)
0 commit comments