Skip to content

Commit 15d8a50

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 182206 b: refs/heads/beta c: 28b0d40 h: refs/heads/master v: v3
1 parent c72c541 commit 15d8a50

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
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 86948adfdedb35051e55f41e865ee0ead6f53471
34+
refs/heads/beta: 28b0d4029e3ae65505b19bf74379a8516b0e1fc9
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: eb836bf767aa1d8d4cba488a9091cde3c0ab4b2f

branches/beta/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/beta/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)