@@ -437,12 +437,16 @@ fn mk_deser_fields(
437
437
f : fn ( ~[ ast:: field ] ) -> @ast:: expr
438
438
) -> @ast:: expr {
439
439
let fields = do fields. mapi |idx, field| {
440
- // ast for `|| deserialize(__d)`
440
+ // ast for `|| std::serialization2:: deserialize(__d)`
441
441
let expr_lambda = cx. lambda (
442
442
cx. expr_blk (
443
443
cx. expr_call (
444
444
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
+ ] ) ,
446
450
~[ cx. expr_var ( span, ~"__d") ]
447
451
)
448
452
)
@@ -635,11 +639,15 @@ fn mk_enum_deser_variant_nary(
635
639
args : ~[ ast:: variant_arg ]
636
640
) -> @ast:: expr {
637
641
let args = do args. mapi |idx, _arg| {
638
- // ast for `|| deserialize(__d)`
642
+ // ast for `|| std::serialization2:: deserialize(__d)`
639
643
let expr_lambda = cx. lambda_expr (
640
644
cx. expr_call (
641
645
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
+ ] ) ,
643
651
~[ cx. expr_var ( span, ~"__d") ]
644
652
)
645
653
) ;
0 commit comments