From a59747cd7f49a0fdad742a2ef1219e868fb0f637 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 18 Dec 2012 15:38:34 -0800 Subject: [PATCH] Another tweak to auto_encode to only use trait-qualified static methods --- src/libsyntax/ext/auto_encode.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libsyntax/ext/auto_encode.rs b/src/libsyntax/ext/auto_encode.rs index 457c3ce5110..6995155af18 100644 --- a/src/libsyntax/ext/auto_encode.rs +++ b/src/libsyntax/ext/auto_encode.rs @@ -1023,6 +1023,8 @@ fn mk_enum_deser_variant_nary( 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")]