mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 03:38:29 +00:00
Remove Substructure::method_ident
.
It's unused.
This commit is contained in:
parent
7a4fdcbbc5
commit
d13fa0d21b
@ -253,8 +253,6 @@ pub struct MethodDef<'a> {
|
|||||||
pub struct Substructure<'a> {
|
pub struct Substructure<'a> {
|
||||||
/// ident of self
|
/// ident of self
|
||||||
pub type_ident: Ident,
|
pub type_ident: Ident,
|
||||||
/// ident of the method
|
|
||||||
pub method_ident: Ident,
|
|
||||||
/// dereferenced access to any [`Self_`] or [`Ptr(Self_, _)`][ptr] arguments
|
/// dereferenced access to any [`Self_`] or [`Ptr(Self_, _)`][ptr] arguments
|
||||||
///
|
///
|
||||||
/// [`Self_`]: ty::Ty::Self_
|
/// [`Self_`]: ty::Ty::Self_
|
||||||
@ -845,13 +843,7 @@ impl<'a> MethodDef<'a> {
|
|||||||
fields: &SubstructureFields<'_>,
|
fields: &SubstructureFields<'_>,
|
||||||
) -> P<Expr> {
|
) -> P<Expr> {
|
||||||
let span = trait_.span;
|
let span = trait_.span;
|
||||||
let substructure = Substructure {
|
let substructure = Substructure { type_ident, self_args, nonself_args, fields };
|
||||||
type_ident,
|
|
||||||
method_ident: Ident::new(self.name, span),
|
|
||||||
self_args,
|
|
||||||
nonself_args,
|
|
||||||
fields,
|
|
||||||
};
|
|
||||||
let mut f = self.combine_substructure.borrow_mut();
|
let mut f = self.combine_substructure.borrow_mut();
|
||||||
let f: &mut CombineSubstructureFunc<'_> = &mut *f;
|
let f: &mut CombineSubstructureFunc<'_> = &mut *f;
|
||||||
f(cx, span, &substructure)
|
f(cx, span, &substructure)
|
||||||
|
Loading…
Reference in New Issue
Block a user