Skip to content

Commit 4cbde81

Browse files
ericktgraydon
authored andcommitted
---
yaml --- r: 22073 b: refs/heads/snap-stage3 c: cd93441 h: refs/heads/master i: 22071: 18875bc v: v3
1 parent 06ee3a7 commit 4cbde81

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,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 99d84bacc8fd3cc6ca55bfcfe86714db6adb48a1
4+
refs/heads/snap-stage3: cd93441705b84ab36a314d7f0b721c2fb6b01ecd
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)