Skip to content

Commit 38d1445

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 173866 b: refs/heads/auto c: 28b0d40 h: refs/heads/master v: v3
1 parent 977c2e3 commit 38d1445

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 86948adfdedb35051e55f41e865ee0ead6f53471
13+
refs/heads/auto: 28b0d4029e3ae65505b19bf74379a8516b0e1fc9
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libsyntax/ext/deriving/hash.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,19 @@ fn hash_substructure(cx: &mut ExtCtxt, trait_span: Span, substr: &Substructure)
6565
[ref state_expr] => state_expr,
6666
_ => cx.span_bug(trait_span, "incorrect number of arguments in `deriving(Hash)`")
6767
};
68-
let hash_path = {
69-
let strs = vec![
70-
cx.ident_of("std"),
71-
cx.ident_of("hash"),
72-
cx.ident_of("Hash"),
73-
cx.ident_of("hash"),
74-
];
75-
76-
cx.expr_path(cx.path_global(trait_span, strs))
77-
};
7868
let call_hash = |&: span, thing_expr| {
69+
let hash_path = {
70+
let strs = vec![
71+
cx.ident_of("std"),
72+
cx.ident_of("hash"),
73+
cx.ident_of("Hash"),
74+
cx.ident_of("hash"),
75+
];
76+
77+
cx.expr_path(cx.path_global(span, strs))
78+
};
7979
let ref_thing = cx.expr_addr_of(span, thing_expr);
80-
let expr = cx.expr_call(span, hash_path.clone(), vec!(ref_thing, state_expr.clone()));
80+
let expr = cx.expr_call(span, hash_path, vec!(ref_thing, state_expr.clone()));
8181
cx.stmt_expr(expr)
8282
};
8383
let mut stmts = Vec::new();

branches/auto/src/test/compile-fail/issue-21160.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ impl Bar {
1515
}
1616

1717
#[derive(Hash)]
18-
//~^ error: the trait `core::hash::Hash<__S>` is not implemented for the type `Bar`
1918
struct Foo(Bar);
19+
//~^ error: the trait `core::hash::Hash<__S>` is not implemented for the type `Bar`
2020

2121
fn main() {}

0 commit comments

Comments
 (0)