about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorMichael Sullivan <sully@msully.net>2012-08-02 15:52:25 -0700
committerMichael Sullivan <sully@msully.net>2012-08-02 16:02:30 -0700
commit2fe299d1a53355c9bb78b9067bd2d18bd4eb94e7 (patch)
tree39464d3cdfd3f2d9f75a2fc4f49e72454b61e475 /src/libsyntax/parse
parent97452c0ca16238a2de5503aca07db26ff9e8ba63 (diff)
downloadrust-2fe299d1a53355c9bb78b9067bd2d18bd4eb94e7.tar.gz
rust-2fe299d1a53355c9bb78b9067bd2d18bd4eb94e7.zip
Extend ast_map to know about method declarations in traits.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 7d5a088a04f..537e72f707f 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -291,7 +291,7 @@ class parser {
                 required({ident: ident, attrs: attrs,
                           decl: {purity: pur with d}, tps: tps,
                           self_ty: self_ty,
-                          span: mk_sp(lo, hi)})
+                          id: p.get_id(), span: mk_sp(lo, hi)})
               }
               token::LBRACE {
                 debug!{"parse_trait_methods(): parsing provided method"};