From 2fe299d1a53355c9bb78b9067bd2d18bd4eb94e7 Mon Sep 17 00:00:00 2001 From: Michael Sullivan Date: Thu, 2 Aug 2012 15:52:25 -0700 Subject: Extend ast_map to know about method declarations in traits. --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') 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"}; -- cgit 1.4.1-3-g733a5