Skip to content

Commit d455986

Browse files
committed
---
yaml --- r: 2221 b: refs/heads/master c: 2746d20 h: refs/heads/master i: 2219: 5a431b2 v: v3
1 parent 4cdb37e commit d455986

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: cf23db6be52179f2acce1577ca1045fe2b5647cb
2+
refs/heads/master: 2746d20c839df05b2c04663f19398b23eddac737

trunk/src/comp/middle/typeck.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,9 @@ mod Collect {
479479

480480
case (ast.item_const(?ident, ?t, _, ?def_id, _)) {
481481
auto typ = convert(t);
482-
cx.type_cache.insert(def_id, tup(0u, typ));
482+
auto tpt = tup(0u, typ);
483+
cx.type_cache.insert(def_id, tpt);
484+
ret tpt;
483485
}
484486

485487
case (ast.item_fn(?ident, ?fn_info, ?tps, ?def_id, _)) {

0 commit comments

Comments
 (0)