]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax_pos/edition.rs
Remove unchecked inline attribute, remove unused functions, make chache mod private...
[rust.git] / src / libsyntax_pos / edition.rs
index 00cd00f2837849b10cbe646f4b7fcfc28796fada..727aad546f5f12d4661a730b440916534afd9367 100644 (file)
@@ -2,8 +2,11 @@
 use std::fmt;
 use std::str::FromStr;
 
+use rustc_macros::HashStable_Generic;
+
 /// The edition of the compiler (RFC 2052)
-#[derive(Clone, Copy, Hash, PartialEq, PartialOrd, Debug, RustcEncodable, RustcDecodable, Eq)]
+#[derive(Clone, Copy, Hash, PartialEq, PartialOrd, Debug,
+         RustcEncodable, RustcDecodable, Eq, HashStable_Generic)]
 pub enum Edition {
     // editions must be kept in order, oldest to newest