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")]