diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2019-11-10 17:46:49 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2019-11-22 20:01:34 +0100 |
| commit | 3c5ddfdd57812bec0446e791d8e8bd74ff3949b3 (patch) | |
| tree | 82074ecb19e9568de3878ef7869b35492ad43e15 /src/libsyntax_pos | |
| parent | bf7c9ba7ced9a2c092192d5d10a78ab858f9faf6 (diff) | |
| download | rust-3c5ddfdd57812bec0446e791d8e8bd74ff3949b3.tar.gz rust-3c5ddfdd57812bec0446e791d8e8bd74ff3949b3.zip | |
Derive HashStable_Generic for Ident.
Diffstat (limited to 'src/libsyntax_pos')
| -rw-r--r-- | src/libsyntax_pos/symbol.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax_pos/symbol.rs b/src/libsyntax_pos/symbol.rs index 23ee972529a..c285c30d761 100644 --- a/src/libsyntax_pos/symbol.rs +++ b/src/libsyntax_pos/symbol.rs @@ -5,7 +5,7 @@ use arena::DroplessArena; use rustc_data_structures::fx::FxHashMap; use rustc_index::vec::Idx; -use rustc_macros::symbols; +use rustc_macros::{symbols, HashStable_Generic}; use rustc_serialize::{Decodable, Decoder, Encodable, Encoder}; use rustc_serialize::{UseSpecializedDecodable, UseSpecializedEncodable}; use rustc_data_structures::stable_hasher::{HashStable, ToStableHashKey, StableHasher}; @@ -752,7 +752,7 @@ symbols! { } } -#[derive(Copy, Clone, Eq)] +#[derive(Copy, Clone, Eq, HashStable_Generic)] pub struct Ident { pub name: Symbol, pub span: Span, |
