Skip to content

Commit 62026fd

Browse files
committed
syntax: change the #[deriving(Hash)] typaram variable name
1 parent d2cfd54 commit 62026fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libsyntax/ext/deriving/hash.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ pub fn expand_deriving_hash(cx: &mut ExtCtxt,
2424

2525
let (path, generics, args) = if cx.ecfg.deriving_hash_type_parameter {
2626
(Path::new_(vec!("std", "hash", "Hash"), None,
27-
vec!(~Literal(Path::new_local("__H"))), true),
27+
vec!(~Literal(Path::new_local("__S"))), true),
2828
LifetimeBounds {
2929
lifetimes: Vec::new(),
30-
bounds: vec!(("__H", vec!(Path::new(vec!("std", "io", "Writer"))))),
30+
bounds: vec!(("__S", vec!(Path::new(vec!("std", "io", "Writer"))))),
3131
},
32-
Path::new_local("__H"))
32+
Path::new_local("__S"))
3333
} else {
3434
(Path::new(vec!("std", "hash", "Hash")),
3535
LifetimeBounds::empty(),

0 commit comments

Comments
 (0)