Repository: PistonDevelopers/glfw-rs (language: rust)

Issue:
error: conflicting implementations for trait `collections::hash::Hash`
```
<std macros>:5:59: 5:63 error: conflicting implementations for trait `collections::hash::Hash` [E0119]
<std macros>:5         #[deriving(PartialEq, Eq, Clone, PartialOrd, Ord, Hash)]
                                                                         ^~~~
note: in expansion of #[deriving]
<std macros>:5:9: 5:65 note: expansion site
<std macros>:1:1: 108:2 note: in expansion of bitflags!
src/glfw.rs:1022:1: 1031:2 note: expansion site
src/glfw.rs:1024:16: 1024:20 note: note conflicting implementation here
src/glfw.rs:1024     #[deriving(Hash)]
```



Discussion / hints:

Fix patch:
diff --git a/src/glfw.rs b/src/glfw.rs
index f5e23637..3825b2e2 100644
--- a/src/glfw.rs
+++ b/src/glfw.rs
@@ -1021,7 +1021,6 @@ impl<'a> WindowMode<'a> {
 
 bitflags! {
     #[doc = "Key modifiers"]
-    #[deriving(Hash)]
     flags Modifiers: c_int {
         static Shift       = ffi::MOD_SHIFT,
         static Control     = ffi::MOD_CONTROL,


Test patch: