Skip to content

Commit

Permalink
incremental: Do not hash spans for things that didn't have spans prev…
Browse files Browse the repository at this point in the history
…iously
  • Loading branch information
petrochenkov committed Jun 28, 2018
1 parent d5e9dff commit 554b428
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/librustc/ich/impls_hir.rs
Expand Up @@ -171,7 +171,7 @@ impl_stable_hash_for!(struct hir::Path {
});

impl_stable_hash_for!(struct hir::PathSegment {
ident,
ident -> (ident.name),
infer_types,
args
});
Expand Down Expand Up @@ -276,7 +276,7 @@ impl_stable_hash_for!(struct hir::MethodSig {

impl_stable_hash_for!(struct hir::TypeBinding {
id,
ident,
ident -> (ident.name),
ty,
span
});
Expand Down Expand Up @@ -406,7 +406,7 @@ impl_stable_hash_for_spanned!(hir::FieldPat);

impl_stable_hash_for!(struct hir::FieldPat {
id -> _,
ident,
ident -> (ident.name),
pat,
is_shorthand,
});
Expand Down Expand Up @@ -650,7 +650,7 @@ impl<'a> HashStable<StableHashingContext<'a>> for hir::TraitItem {
} = *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);
Expand Down Expand Up @@ -687,7 +687,7 @@ impl<'a> HashStable<StableHashingContext<'a>> for hir::ImplItem {
} = *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);
Expand Down Expand Up @@ -787,7 +787,7 @@ impl_stable_hash_for!(enum hir::UseKind {

impl_stable_hash_for!(struct hir::StructField {
span,
ident,
ident -> (ident.name),
vis,
id,
ty,
Expand Down Expand Up @@ -845,15 +845,15 @@ impl_stable_hash_for!(enum hir::Item_ {

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,
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/ich/impls_ty.rs
Expand Up @@ -1079,7 +1079,7 @@ impl_stable_hash_for!(struct ty::CratePredicatesMap<'tcx> {

impl_stable_hash_for!(struct ty::AssociatedItem {
def_id,
ident,
ident -> (ident.name),
kind,
vis,
defaultness,
Expand Down

0 comments on commit 554b428

Please sign in to comment.