Skip to content

Commit c28db89

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 174139 b: refs/heads/batch c: 28b0d40 h: refs/heads/master i: 174137: 15ef93d 174135: 9177c30 v: v3
1 parent 823b253 commit c28db89

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
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: 86948adfdedb35051e55f41e865ee0ead6f53471
32+
refs/heads/batch: 28b0d4029e3ae65505b19bf74379a8516b0e1fc9
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

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