Simplify BodyId hashing.

This commit is contained in:
Camille GILLOT
2024-01-16 23:23:31 +00:00
parent 20a8a23cb3
commit d59968b5f6
7 changed files with 6 additions and 69 deletions

View File

@@ -57,6 +57,8 @@ impl<'ctx> rustc_ast::HashStableContext for StableHashingContext<'ctx> {
}
}
impl<'ctx> rustc_hir::HashStableContext for StableHashingContext<'ctx> {}
impl<'a> HashStable<StableHashingContext<'a>> for SourceFile {
fn hash_stable(&self, hcx: &mut StableHashingContext<'a>, hasher: &mut StableHasher) {
let SourceFile {