Skip to content

Commit fd5a60b

Browse files
ericktgraydon
authored andcommitted
---
yaml --- r: 24181 b: refs/heads/master c: cd93441 h: refs/heads/master i: 24179: e3f3002 v: v3
1 parent 1d73f50 commit fd5a60b

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 99d84bacc8fd3cc6ca55bfcfe86714db6adb48a1
2+
refs/heads/master: cd93441705b84ab36a314d7f0b721c2fb6b01ecd
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/libsyntax/ext/auto_serialize2.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,12 +437,16 @@ fn mk_deser_fields(
437437
f: fn(~[ast::field]) -> @ast::expr
438438
) -> @ast::expr {
439439
let fields = do fields.mapi |idx, field| {
440-
// ast for `|| deserialize(__d)`
440+
// ast for `|| std::serialization2::deserialize(__d)`
441441
let expr_lambda = cx.lambda(
442442
cx.expr_blk(
443443
cx.expr_call(
444444
span,
445-
cx.expr_var(span, ~"deserialize"),
445+
cx.expr_path(span, ~[
446+
cx.ident_of(~"std"),
447+
cx.ident_of(~"serialization2"),
448+
cx.ident_of(~"deserialize"),
449+
]),
446450
~[cx.expr_var(span, ~"__d")]
447451
)
448452
)
@@ -635,11 +639,15 @@ fn mk_enum_deser_variant_nary(
635639
args: ~[ast::variant_arg]
636640
) -> @ast::expr {
637641
let args = do args.mapi |idx, _arg| {
638-
// ast for `|| deserialize(__d)`
642+
// ast for `|| std::serialization2::deserialize(__d)`
639643
let expr_lambda = cx.lambda_expr(
640644
cx.expr_call(
641645
span,
642-
cx.expr_var(span, ~"deserialize"),
646+
cx.expr_path(span, ~[
647+
cx.ident_of(~"std"),
648+
cx.ident_of(~"serialization2"),
649+
cx.ident_of(~"deserialize"),
650+
]),
643651
~[cx.expr_var(span, ~"__d")]
644652
)
645653
);

0 commit comments

Comments
 (0)