about summary refs log tree commit diff
path: root/src/libsyntax/attr.rs
diff options
context:
space:
mode:
authorJakub Wieczorek <jakub@jakub.cc>2014-08-30 16:22:19 +0200
committerJakub Wieczorek <jakub@jakub.cc>2014-08-30 19:50:46 +0200
commit6f35ede5a475c286066d8d88cb9a519be2133d0d (patch)
tree9733c7f8994ab75a7a2a8b9c7f200d89cd81d381 /src/libsyntax/attr.rs
parentd398eb76ae5fdb7c08bbb7c0e3d85dc22d42c5ce (diff)
downloadrust-6f35ede5a475c286066d8d88cb9a519be2133d0d.tar.gz
rust-6f35ede5a475c286066d8d88cb9a519be2133d0d.zip
Remove the branch merging optimisations for slice patterns
They were only correct in the simplest case. Some of the optimisations
are certainly possible but should be introduced carefully and only
when the whole pattern codegen infrastructure is in a better shape.

Fixes #16648.
Diffstat (limited to 'src/libsyntax/attr.rs')
-rw-r--r--src/libsyntax/attr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs
index 4b2a3073755..c234bea0a33 100644
--- a/src/libsyntax/attr.rs
+++ b/src/libsyntax/attr.rs
@@ -498,7 +498,7 @@ impl ReprAttr {
     }
 }
 
-#[deriving(PartialEq, Show)]
+#[deriving(Eq, Hash, PartialEq, Show)]
 pub enum IntType {
     SignedInt(ast::IntTy),
     UnsignedInt(ast::UintTy)