diff options
| author | bors <bors@rust-lang.org> | 2023-10-20 08:19:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-10-20 08:19:54 +0000 |
| commit | c7f3948028cf5bcbfd2ba2fb511186c0f72e4d26 (patch) | |
| tree | a690510fbea85c710c89df0b202fa6ad241d914b /compiler/rustc_ast/src/lib.rs | |
| parent | 7849162ace72b5793f23ad68ed985c247e3cab13 (diff) | |
| parent | e8e9f6a32af51fab7aae62f3f551aa3be8ff1ba2 (diff) | |
| download | rust-c7f3948028cf5bcbfd2ba2fb511186c0f72e4d26.tar.gz rust-c7f3948028cf5bcbfd2ba2fb511186c0f72e4d26.zip | |
Auto merge of #116946 - compiler-errors:movability-and-mutability, r=lcnr
Uplift movability and mutability, the simple way Just make type_ir a dependency of ast. This can be relaxed later if we want to make the dependency less heavy. Part of rust-lang/types-team#124. r? `@lcnr` or `@jackh726`
Diffstat (limited to 'compiler/rustc_ast/src/lib.rs')
| -rw-r--r-- | compiler/rustc_ast/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/lib.rs b/compiler/rustc_ast/src/lib.rs index ddc7c8ee825..ada5c95dc34 100644 --- a/compiler/rustc_ast/src/lib.rs +++ b/compiler/rustc_ast/src/lib.rs @@ -60,7 +60,9 @@ use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; /// 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_span::HashStableContext { +pub trait HashStableContext: + rustc_type_ir::HashStableContext + rustc_span::HashStableContext +{ fn hash_attr(&mut self, _: &ast::Attribute, hasher: &mut StableHasher); } |
