1
Fork 0

Further HashStable_Generic derives.

This commit is contained in:
Camille GILLOT 2019-11-09 21:34:12 +01:00
parent 1dd5133dce
commit efcb695f4c
4 changed files with 11 additions and 53 deletions

View file

@ -1474,7 +1474,7 @@ pub enum LitFloatType {
///
/// E.g., `"foo"`, `42`, `12.34`, or `bool`.
// Clippy uses Hash and PartialEq
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Hash, PartialEq)]
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Hash, PartialEq, HashStable_Generic)]
pub enum LitKind {
/// A string literal (`"foo"`).
Str(Symbol, StrStyle),