rustc: Add a missing return value to Collect.ty_of_item()

This commit is contained in:
Patrick Walton 2011-04-25 18:14:53 -07:00
parent cf23db6be5
commit 2746d20c83

View file

@ -479,7 +479,9 @@ mod Collect {
case (ast.item_const(?ident, ?t, _, ?def_id, _)) {
auto typ = convert(t);
cx.type_cache.insert(def_id, tup(0u, typ));
auto tpt = tup(0u, typ);
cx.type_cache.insert(def_id, tpt);
ret tpt;
}
case (ast.item_fn(?ident, ?fn_info, ?tps, ?def_id, _)) {