});
impl_stable_hash_for!(struct hir::PathSegment {
- ident,
+ ident -> (ident.name),
infer_types,
args
});
impl_stable_hash_for!(struct hir::TypeBinding {
id,
- ident,
+ ident -> (ident.name),
ty,
span
});
impl_stable_hash_for!(struct hir::FieldPat {
id -> _,
- ident,
+ ident -> (ident.name),
pat,
is_shorthand,
});
} = *self;
hcx.hash_hir_item_like(|hcx| {
- ident.hash_stable(hcx, hasher);
+ ident.name.hash_stable(hcx, hasher);
attrs.hash_stable(hcx, hasher);
generics.hash_stable(hcx, hasher);
node.hash_stable(hcx, hasher);
} = *self;
hcx.hash_hir_item_like(|hcx| {
- ident.hash_stable(hcx, hasher);
+ ident.name.hash_stable(hcx, hasher);
vis.hash_stable(hcx, hasher);
defaultness.hash_stable(hcx, hasher);
attrs.hash_stable(hcx, hasher);
impl_stable_hash_for!(struct hir::StructField {
span,
- ident,
+ ident -> (ident.name),
vis,
id,
ty,
impl_stable_hash_for!(struct hir::TraitItemRef {
id,
- ident,
+ ident -> (ident.name),
kind,
span,
defaultness
impl_stable_hash_for!(struct hir::ImplItemRef {
id,
- ident,
+ ident -> (ident.name),
kind,
span,
vis,