aboutsummaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-09-12 01:05:56 -0700
committerGraydon Hoare <[email protected]>2010-09-12 01:05:56 -0700
commit67aa39e1ef4358c309f4b07f1d587a0dad6dddf8 (patch)
tree624b28749ce5e58e5aa1bc559be2c9e24aa994fa /src/boot
parentCleanup, refactoring, and some runtime tests. (diff)
downloadrust-67aa39e1ef4358c309f4b07f1d587a0dad6dddf8.tar.xz
rust-67aa39e1ef4358c309f4b07f1d587a0dad6dddf8.zip
Fix a leak when box types are used via type descriptors.
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/me/trans.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/me/trans.ml b/src/boot/me/trans.ml
index 693404ed..ad0d6445 100644
--- a/src/boot/me/trans.ml
+++ b/src/boot/me/trans.ml
@@ -2562,8 +2562,8 @@ let trans_visitor
and get_tydesc (idopt:node_id option) (ty:Ast.ty) : Il.cell =
log cx "getting tydesc for %a" Ast.sprintf_ty ty;
- let (ty, mut) = simplified_ty_innermost_was_mutable ty in
- match ty with
+ let (ty', mut) = simplified_ty_innermost_was_mutable ty in
+ match ty' with
Ast.TY_param (idx, _) ->
(get_ty_param_in_current_frame idx)
| t when has_parametric_types t ->