@@ -55,7 +55,7 @@ mod tests;
5555/// ```
5656///
5757/// `'outer` is a label.
58- #[ derive( Clone , RustcEncodable , RustcDecodable , Copy ) ]
58+ #[ derive( Clone , RustcEncodable , RustcDecodable , Copy , HashStable_Generic ) ]
5959pub struct Label {
6060 pub ident : Ident ,
6161}
@@ -483,7 +483,7 @@ pub struct Crate {
483483/// Possible values inside of compile-time attribute lists.
484484///
485485/// E.g., the '..' in `#[name(..)]`.
486- #[ derive( Clone , RustcEncodable , RustcDecodable , Debug ) ]
486+ #[ derive( Clone , RustcEncodable , RustcDecodable , Debug , HashStable_Generic ) ]
487487pub enum NestedMetaItem {
488488 /// A full MetaItem, for recursive meta items.
489489 MetaItem ( MetaItem ) ,
@@ -496,7 +496,7 @@ pub enum NestedMetaItem {
496496/// A spanned compile-time attribute item.
497497///
498498/// E.g., `#[test]`, `#[derive(..)]`, `#[rustfmt::skip]` or `#[feature = "foo"]`.
499- #[ derive( Clone , RustcEncodable , RustcDecodable , Debug ) ]
499+ #[ derive( Clone , RustcEncodable , RustcDecodable , Debug , HashStable_Generic ) ]
500500pub struct MetaItem {
501501 pub path : Path ,
502502 pub kind : MetaItemKind ,
@@ -506,7 +506,7 @@ pub struct MetaItem {
506506/// A compile-time attribute item.
507507///
508508/// E.g., `#[test]`, `#[derive(..)]` or `#[feature = "foo"]`.
509- #[ derive( Clone , RustcEncodable , RustcDecodable , Debug ) ]
509+ #[ derive( Clone , RustcEncodable , RustcDecodable , Debug , HashStable_Generic ) ]
510510pub enum MetaItemKind {
511511 /// Word meta item.
512512 ///
0 commit comments