about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2019-11-09 22:02:24 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2019-11-17 22:37:10 +0100
commit2a67986eb6970f5ec1d4df8e409f04397568935b (patch)
treeb2b08f17f45a86c1e8a39a55f6b1b819d6e6c7dd /src/libsyntax
parentefcb695f4c38f653d8f0adb70f94aa29328be679 (diff)
downloadrust-2a67986eb6970f5ec1d4df8e409f04397568935b.tar.gz
rust-2a67986eb6970f5ec1d4df8e409f04397568935b.zip
HashStable literals in libsyntax.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/token.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/token.rs b/src/libsyntax/token.rs
index ab798e93d67..8099b55780c 100644
--- a/src/libsyntax/token.rs
+++ b/src/libsyntax/token.rs
@@ -53,7 +53,7 @@ impl DelimToken {
     }
 }
 
-#[derive(Clone, Copy, PartialEq, RustcEncodable, RustcDecodable, Debug)]
+#[derive(Clone, Copy, PartialEq, RustcEncodable, RustcDecodable, Debug, HashStable_Generic)]
 pub enum LitKind {
     Bool, // AST only, must never appear in a `Token`
     Byte,
@@ -68,7 +68,7 @@ pub enum LitKind {
 }
 
 /// A literal token.
-#[derive(Clone, Copy, PartialEq, RustcEncodable, RustcDecodable, Debug)]
+#[derive(Clone, Copy, PartialEq, RustcEncodable, RustcDecodable, Debug, HashStable_Generic)]
 pub struct Lit {
     pub kind: LitKind,
     pub symbol: Symbol,