From 6f35ede5a475c286066d8d88cb9a519be2133d0d Mon Sep 17 00:00:00 2001 From: Jakub Wieczorek Date: Sat, 30 Aug 2014 16:22:19 +0200 Subject: 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. --- src/libsyntax/attr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax') 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) -- cgit 1.4.1-3-g733a5