rustc: Add a missing return value to Collect.ty_of_item()
This commit is contained in:
parent
cf23db6be5
commit
2746d20c83
1 changed files with 3 additions and 1 deletions
|
|
@ -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, _)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue