diff options
| author | Patrick Walton <[email protected]> | 2011-04-25 18:14:53 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-04-25 18:15:48 -0700 |
| commit | 2746d20c839df05b2c04663f19398b23eddac737 (patch) | |
| tree | f40e9aac16cb7e8cef48f7497d6f91df911de2f5 /src | |
| parent | A little more guarding against wasted work in ty, typeck. (diff) | |
| download | rust-2746d20c839df05b2c04663f19398b23eddac737.tar.xz rust-2746d20c839df05b2c04663f19398b23eddac737.zip | |
rustc: Add a missing return value to Collect.ty_of_item()
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp/middle/typeck.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/comp/middle/typeck.rs b/src/comp/middle/typeck.rs index 24aa8db0..ce229999 100644 --- a/src/comp/middle/typeck.rs +++ b/src/comp/middle/typeck.rs @@ -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, _)) { |