From cc59cea8b055cd94279c167e99b1176751702d36 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 30 Mar 2011 17:23:25 -0700 Subject: rustc: Thread an item-to-type mapping throughout the typechecking and translation phases --- src/comp/front/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/comp/front/parser.rs') diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 25c9f4a5..a247c824 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -1876,8 +1876,8 @@ impure fn parse_item_obj(parser p, ast.layer lyr) -> @ast.item { methods=meths, dtor=dtor); - auto item = ast.item_obj(ident, ob, ty_params, - p.next_def_id(), ast.ann_none); + auto odid = rec(ty=p.next_def_id(), ctor=p.next_def_id()); + auto item = ast.item_obj(ident, ob, ty_params, odid, ast.ann_none); ret @spanned(lo, hi, item); } -- cgit v1.2.3