about summary refs log tree commit diff
path: root/src/libsyntax/lib.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2019-11-23 14:47:31 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2019-11-23 18:52:23 +0100
commit782cc9f65c0c19ef79bd009074e09bf0394674f4 (patch)
treec367a73f0bcc04651ec1fb77f6ba9655d4a94353 /src/libsyntax/lib.rs
parent4d1674f62007053ddeba44e27459e18128cc97cf (diff)
downloadrust-782cc9f65c0c19ef79bd009074e09bf0394674f4.tar.gz
rust-782cc9f65c0c19ef79bd009074e09bf0394674f4.zip
Derive HashStable for TokenKind.
Diffstat (limited to 'src/libsyntax/lib.rs')
-rw-r--r--src/libsyntax/lib.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs
index 579d2657939..22b49862f49 100644
--- a/src/libsyntax/lib.rs
+++ b/src/libsyntax/lib.rs
@@ -20,7 +20,6 @@
 #![recursion_limit="256"]
 
 pub use errors;
-use rustc_data_structures::stable_hasher::StableHasher;
 use rustc_data_structures::sync::Lock;
 use rustc_index::bit_set::GrowableBitSet;
 pub use rustc_data_structures::thin_vec::ThinVec;
@@ -115,6 +114,4 @@ pub mod early_buffered_lints;
 /// 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 librustc.
-pub trait HashStableContext: syntax_pos::HashStableContext {
-    fn hash_stable_tokenkind(&mut self, tokenkind: &token::TokenKind, hasher: &mut StableHasher);
-}
+pub trait HashStableContext: syntax_pos::HashStableContext {}