about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2015-05-26 00:41:27 +0300
committerAriel Ben-Yehuda <arielb1@mail.tau.ac.il>2015-05-26 11:38:56 +0300
commitc7711002bb3eed4ecbc8c8da63c97681fd1588e6 (patch)
tree112fe4db4748c3f8e0cdabc746f9b3b1d87bdb2a /src/libsyntax
parent014bf0df341ef63a8f3ce39b6eecc1e11ca41c55 (diff)
downloadrust-c7711002bb3eed4ecbc8c8da63c97681fd1588e6.tar.gz
rust-c7711002bb3eed4ecbc8c8da63c97681fd1588e6.zip
Make caching in stability work. This improves stability check performance
by 90%.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/attr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs
index 755dd3bb458..3c4c4d70343 100644
--- a/src/libsyntax/attr.rs
+++ b/src/libsyntax/attr.rs
@@ -366,7 +366,7 @@ pub fn cfg_matches(diagnostic: &SpanHandler, cfgs: &[P<MetaItem>], cfg: &ast::Me
 }
 
 /// Represents the #[deprecated] and friends attributes.
-#[derive(RustcEncodable,RustcDecodable,Clone,Debug)]
+#[derive(RustcEncodable, RustcDecodable, Clone, Debug, PartialEq, Eq, Hash)]
 pub struct Stability {
     pub level: StabilityLevel,
     pub feature: InternedString,
@@ -378,7 +378,7 @@ pub struct Stability {
 }
 
 /// The available stability levels.
-#[derive(RustcEncodable,RustcDecodable,PartialEq,PartialOrd,Clone,Debug,Copy)]
+#[derive(RustcEncodable, RustcDecodable, PartialEq, PartialOrd, Clone, Debug, Copy, Eq, Hash)]
 pub enum StabilityLevel {
     Unstable,
     Stable,