summary refs log tree commit diff
path: root/src/libsyntax/ext/deriving/decodable.rs
diff options
context:
space:
mode:
authorMarvin Löbel <loebel.marvin@gmail.com>2013-09-02 03:45:37 +0200
committerMarvin Löbel <loebel.marvin@gmail.com>2013-09-03 14:45:06 +0200
commit74190853373c7963d933e2fb5c2ac2f761fdbc02 (patch)
tree12ffa50679235aab28c7bf26799504d7ac8b8ac6 /src/libsyntax/ext/deriving/decodable.rs
parent58decdd7a115f2892d63fa3760fa2125eb784ac8 (diff)
downloadrust-74190853373c7963d933e2fb5c2ac2f761fdbc02.tar.gz
rust-74190853373c7963d933e2fb5c2ac2f761fdbc02.zip
Modernized a few more types in syntax::ast
Diffstat (limited to 'src/libsyntax/ext/deriving/decodable.rs')
-rw-r--r--src/libsyntax/ext/deriving/decodable.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ext/deriving/decodable.rs b/src/libsyntax/ext/deriving/decodable.rs
index 6a2cddb3583..66cd2d511a8 100644
--- a/src/libsyntax/ext/deriving/decodable.rs
+++ b/src/libsyntax/ext/deriving/decodable.rs
@@ -15,7 +15,7 @@ encodable.rs for more.
 
 use std::vec;
 
-use ast::{MetaItem, item, expr, m_mutbl};
+use ast::{MetaItem, item, Expr, MutMutable};
 use codemap::Span;
 use ext::base::ExtCtxt;
 use ext::build::AstBuilder;
@@ -39,7 +39,7 @@ pub fn expand_deriving_decodable(cx: @ExtCtxt,
                 generics: LifetimeBounds::empty(),
                 explicit_self: None,
                 args: ~[Ptr(~Literal(Path::new_local("__D")),
-                            Borrowed(None, m_mutbl))],
+                            Borrowed(None, MutMutable))],
                 ret_ty: Self,
                 const_nonmatching: true,
                 combine_substructure: decodable_substructure,
@@ -51,7 +51,7 @@ pub fn expand_deriving_decodable(cx: @ExtCtxt,
 }
 
 fn decodable_substructure(cx: @ExtCtxt, span: Span,
-                          substr: &Substructure) -> @expr {
+                          substr: &Substructure) -> @Expr {
     let decoder = substr.nonself_args[0];
     let recurse = ~[cx.ident_of("extra"),
                     cx.ident_of("serialize"),