1
Fork 0

rustc: Thread an item-to-type mapping throughout the typechecking and translation phases

This commit is contained in:
Patrick Walton 2011-03-30 17:23:25 -07:00
parent a154c5b656
commit cc59cea8b0
10 changed files with 393 additions and 351 deletions

View file

@ -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);
}