diff options
| author | Eric Holk <ericholk@microsoft.com> | 2022-09-07 14:46:04 -0700 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2022-09-07 16:05:06 -0700 |
| commit | 578fc49fc1bbc5498138c84eecad68ee3de54173 (patch) | |
| tree | db6e6ba53bfcd02f6df53a065bbafd11649548a1 /compiler/rustc_query_system/src | |
| parent | f91ca2878af792bc6969b97d78fe91b27739ac2d (diff) | |
| download | rust-578fc49fc1bbc5498138c84eecad68ee3de54173.tar.gz rust-578fc49fc1bbc5498138c84eecad68ee3de54173.zip | |
Use HashStable_Generic in rustc_type_ir
A lot of the types in this crate implemented HashStable directly to avoid circular dependencies. One way around that is to use HashStable_Generic. We adopt that here to avoid a lot of boilerplate. This doesn't update all the types, because some would require `I: Interner + HashStable`.
Diffstat (limited to 'compiler/rustc_query_system/src')
| -rw-r--r-- | compiler/rustc_query_system/src/ich/impls_syntax.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_query_system/src/ich/impls_syntax.rs b/compiler/rustc_query_system/src/ich/impls_syntax.rs index d7732cb1825..0bc811eb044 100644 --- a/compiler/rustc_query_system/src/ich/impls_syntax.rs +++ b/compiler/rustc_query_system/src/ich/impls_syntax.rs @@ -148,3 +148,5 @@ impl<'tcx> HashStable<StableHashingContext<'tcx>> for rustc_feature::Features { }); } } + +impl<'ctx> rustc_type_ir::HashStableContext for StableHashingContext<'ctx> {} |
