diff options
| author | Graydon Hoare <[email protected]> | 2011-01-04 15:29:38 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-01-04 15:29:38 -0800 |
| commit | 116dd9e33803cb3b4a4c87a181ec3bd5d9966f63 (patch) | |
| tree | d27d35d7da1089eb14853dd72ea1543290a2ec7d /src/comp | |
| parent | Merge remote branch 'espindola/import' (diff) | |
| download | rust-116dd9e33803cb3b4a4c87a181ec3bd5d9966f63.tar.xz rust-116dd9e33803cb3b4a4c87a181ec3bd5d9966f63.zip | |
Correct function pointer type in closure.
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/middle/trans.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 24d95d4e..99ce2dff 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -194,8 +194,8 @@ fn T_fn(vec[TypeRef] inputs, TypeRef output) -> TypeRef { } fn T_closure(TypeRef tfn) -> TypeRef { - ret T_struct(vec(tfn, - T_ptr(T_opaque()))); + ret T_struct(vec(T_ptr(tfn), + T_ptr(T_box(T_nil())))); } fn T_ptr(TypeRef t) -> TypeRef { |