]> git.lizzy.rs Git - rust.git/commitdiff
syntax: change the #[deriving(Hash)] typaram variable name
authorErick Tryzelaar <erick.tryzelaar@gmail.com>
Wed, 12 Mar 2014 03:07:42 +0000 (20:07 -0700)
committerErick Tryzelaar <erick.tryzelaar@gmail.com>
Thu, 13 Mar 2014 01:58:54 +0000 (18:58 -0700)
src/libsyntax/ext/deriving/hash.rs

index 299989d5fe667b47a81580e38fa77ee843ad0d68..a94feee9d3757fe6d31ee2e840308d3e2e6367e1 100644 (file)
@@ -24,12 +24,12 @@ pub fn expand_deriving_hash(cx: &mut ExtCtxt,
 
     let (path, generics, args) = if cx.ecfg.deriving_hash_type_parameter {
         (Path::new_(vec!("std", "hash", "Hash"), None,
-                    vec!(~Literal(Path::new_local("__H"))), true),
+                    vec!(~Literal(Path::new_local("__S"))), true),
          LifetimeBounds {
              lifetimes: Vec::new(),
-             bounds: vec!(("__H", vec!(Path::new(vec!("std", "io", "Writer"))))),
+             bounds: vec!(("__S", vec!(Path::new(vec!("std", "io", "Writer"))))),
          },
-         Path::new_local("__H"))
+         Path::new_local("__S"))
     } else {
         (Path::new(vec!("std", "hash", "Hash")),
          LifetimeBounds::empty(),