diff options
| author | Jana Dönszelmann <jana@donsz.nl> | 2025-02-09 22:50:11 +0100 |
|---|---|---|
| committer | Jana Dönszelmann <jana@donsz.nl> | 2025-02-24 14:31:19 +0100 |
| commit | 2f0652745d473e3235f62748346ca49ccb1768ce (patch) | |
| tree | f43088257879d1da76679d9a7e25cb98fe8cf640 /compiler/rustc_hir/src/stable_hash_impls.rs | |
| parent | d8ea2a230f2a0aa77a544bc609baf6a3caab060e (diff) | |
| download | rust-2f0652745d473e3235f62748346ca49ccb1768ce.tar.gz rust-2f0652745d473e3235f62748346ca49ccb1768ce.zip | |
add test to verify that #132391 can be closed
Diffstat (limited to 'compiler/rustc_hir/src/stable_hash_impls.rs')
| -rw-r--r-- | compiler/rustc_hir/src/stable_hash_impls.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_hir/src/stable_hash_impls.rs b/compiler/rustc_hir/src/stable_hash_impls.rs index 9e56d38c654..2709a826549 100644 --- a/compiler/rustc_hir/src/stable_hash_impls.rs +++ b/compiler/rustc_hir/src/stable_hash_impls.rs @@ -10,7 +10,11 @@ use crate::hir_id::{HirId, ItemLocalId}; /// Requirements for a `StableHashingContext` to be used in this crate. /// This is a hack to allow using the `HashStable_Generic` derive macro /// instead of implementing everything in `rustc_middle`. -pub trait HashStableContext: rustc_attr_data_structures::HashStableContext + rustc_ast::HashStableContext + rustc_abi::HashStableContext { +pub trait HashStableContext: + rustc_attr_data_structures::HashStableContext + + rustc_ast::HashStableContext + + rustc_abi::HashStableContext +{ fn hash_attr_id(&mut self, id: &HashIgnoredAttrId, hasher: &mut StableHasher); } |
