Auto merge of #100237 - cjgillot:no-special-hash-hir, r=nagisa
Remove manual implementations of HashStable for hir::Expr and hir::Ty. We do not need to force hashing HIR bodies inside those nodes. The contents of bodies are not accessible from the `hir_owner` query which used `hash_without_bodies`. When the content of a body is required, the access is still done using `hir_owner_nodes`, which continues hashing HIR bodies.
This commit is contained in:
@@ -1626,7 +1626,7 @@ pub struct AnonConst {
|
||||
}
|
||||
|
||||
/// An expression.
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, HashStable_Generic)]
|
||||
pub struct Expr<'hir> {
|
||||
pub hir_id: HirId,
|
||||
pub kind: ExprKind<'hir>,
|
||||
@@ -2380,7 +2380,7 @@ impl TypeBinding<'_> {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, HashStable_Generic)]
|
||||
pub struct Ty<'hir> {
|
||||
pub hir_id: HirId,
|
||||
pub kind: TyKind<'hir>,
|
||||
|
||||
Reference in New Issue
Block a user