From 62026fd6b64296c85a8150119e2cd6a162b8b5e0 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Tue, 11 Mar 2014 20:07:42 -0700 Subject: [PATCH] syntax: change the #[deriving(Hash)] typaram variable name --- src/libsyntax/ext/deriving/hash.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libsyntax/ext/deriving/hash.rs b/src/libsyntax/ext/deriving/hash.rs index 299989d5fe667..a94feee9d3757 100644 --- a/src/libsyntax/ext/deriving/hash.rs +++ b/src/libsyntax/ext/deriving/hash.rs @@ -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(),