diff options
| author | xd009642 <danielmckenna93@gmail.com> | 2020-10-08 23:23:27 +0100 |
|---|---|---|
| committer | xd009642 <danielmckenna93@gmail.com> | 2020-10-08 23:32:20 +0100 |
| commit | a6e2b636e658ca7346ffb32bf11301d92b72a1de (patch) | |
| tree | 6542609d14fcfd59a5500e0fb3fa6b3a699c4760 /compiler/rustc_middle/src/ich | |
| parent | 4437b4b1509c3c15b41a05489c4bddd2fe30e33f (diff) | |
Implement the instruction_set attribute
Diffstat (limited to 'compiler/rustc_middle/src/ich')
| -rw-r--r-- | compiler/rustc_middle/src/ich/impls_hir.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/ich/impls_hir.rs b/compiler/rustc_middle/src/ich/impls_hir.rs index c2d177b69b6..d6c6cef1751 100644 --- a/compiler/rustc_middle/src/ich/impls_hir.rs +++ b/compiler/rustc_middle/src/ich/impls_hir.rs @@ -221,6 +221,12 @@ impl<'hir> HashStable<StableHashingContext<'hir>> for attr::InlineAttr { } } +impl<'hir> HashStable<StableHashingContext<'hir>> for attr::InstructionSetAttr { + fn hash_stable(&self, hcx: &mut StableHashingContext<'hir>, hasher: &mut StableHasher) { + mem::discriminant(self).hash_stable(hcx, hasher); + } +} + impl<'hir> HashStable<StableHashingContext<'hir>> for attr::OptimizeAttr { fn hash_stable(&self, hcx: &mut StableHashingContext<'hir>, hasher: &mut StableHasher) { mem::discriminant(self).hash_stable(hcx, hasher); |
