File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
compiler/rustc_builtin_macros/src/deriving/generic Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -253,8 +253,6 @@ pub struct MethodDef<'a> {
253
253
pub struct Substructure < ' a > {
254
254
/// ident of self
255
255
pub type_ident : Ident ,
256
- /// ident of the method
257
- pub method_ident : Ident ,
258
256
/// dereferenced access to any [`Self_`] or [`Ptr(Self_, _)`][ptr] arguments
259
257
///
260
258
/// [`Self_`]: ty::Ty::Self_
@@ -845,13 +843,7 @@ impl<'a> MethodDef<'a> {
845
843
fields : & SubstructureFields < ' _ > ,
846
844
) -> P < Expr > {
847
845
let span = trait_. span ;
848
- let substructure = Substructure {
849
- type_ident,
850
- method_ident : Ident :: new ( self . name , span) ,
851
- self_args,
852
- nonself_args,
853
- fields,
854
- } ;
846
+ let substructure = Substructure { type_ident, self_args, nonself_args, fields } ;
855
847
let mut f = self . combine_substructure . borrow_mut ( ) ;
856
848
let f: & mut CombineSubstructureFunc < ' _ > = & mut * f;
857
849
f ( cx, span, & substructure)
You can’t perform that action at this time.
0 commit comments