diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-12-18 12:04:26 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-12-18 12:04:26 -0800 |
| commit | c704d26c8cd35abbb156948e8814ba95b4bb8a24 (patch) | |
| tree | 463b9d0a404cbee5592064142cefb64584553a58 /src/libsyntax | |
| parent | 55138c739dee18361983fc4ef6bd983067785457 (diff) | |
| download | rust-c704d26c8cd35abbb156948e8814ba95b4bb8a24.tar.gz rust-c704d26c8cd35abbb156948e8814ba95b4bb8a24.zip | |
Change auto_encode to call 'std::serialize::traits::Decode::decode'
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/auto_encode.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/ext/auto_encode.rs b/src/libsyntax/ext/auto_encode.rs index 0ff3dbe1506..457c3ce5110 100644 --- a/src/libsyntax/ext/auto_encode.rs +++ b/src/libsyntax/ext/auto_encode.rs @@ -818,6 +818,8 @@ fn mk_deser_fields( cx.expr_path(span, ~[ cx.ident_of(~"std"), cx.ident_of(~"serialize"), + cx.ident_of(~"traits"), + cx.ident_of(~"Decodable"), cx.ident_of(~"decode"), ]), ~[cx.expr_var(span, ~"__d")] |
