aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/parser.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-03-30 17:23:25 -0700
committerPatrick Walton <[email protected]>2011-03-30 17:28:06 -0700
commitcc59cea8b055cd94279c167e99b1176751702d36 (patch)
tree9a7c33168ac8845f81e62c43a6a1ae8ee46ace87 /src/comp/front/parser.rs
parentUm, that'd be, align the word *before* retpc. Addresses point to the low part... (diff)
downloadrust-cc59cea8b055cd94279c167e99b1176751702d36.tar.xz
rust-cc59cea8b055cd94279c167e99b1176751702d36.zip
rustc: Thread an item-to-type mapping throughout the typechecking and translation phases
Diffstat (limited to 'src/comp/front/parser.rs')
-rw-r--r--src/comp/front/parser.rs4
1 files changed, 2 insertions, 2 deletions
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);
}