diff options
| author | Graydon Hoare <[email protected]> | 2010-07-01 23:12:34 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-07-01 23:12:34 -0700 |
| commit | f3de4ee2a798cb103bbac849cc6981b7de89cb90 (patch) | |
| tree | 2ec628edf95e341e12434f572ebc103fea9cae2a /src/boot/me/semant.ml | |
| parent | Strip outer 'mutable' off slot when deciding if pred can apply. (diff) | |
| download | rust-f3de4ee2a798cb103bbac849cc6981b7de89cb90.tar.xz rust-f3de4ee2a798cb103bbac849cc6981b7de89cb90.zip | |
Teach the associative_binary_op_ty_fold about box, mutable and tys.
Diffstat (limited to 'src/boot/me/semant.ml')
| -rw-r--r-- | src/boot/me/semant.ml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/boot/me/semant.ml b/src/boot/me/semant.ml index c6c60601..30e8b751 100644 --- a/src/boot/me/semant.ml +++ b/src/boot/me/semant.ml @@ -926,6 +926,7 @@ let associative_binary_op_ty_fold fn islots oslot in { base with + ty_fold_tys = (fun ts -> reduce (Array.to_list ts)); ty_fold_slots = (fun slots -> reduce (Array.to_list slots)); ty_fold_slot = (fun (_, a) -> a); ty_fold_tags = (fun tab -> reduce (htab_vals tab)); @@ -941,6 +942,8 @@ let associative_binary_op_ty_fold reduce (List.map reduce_fn (htab_vals fns))); ty_fold_chan = (fun a -> a); ty_fold_port = (fun a -> a); + ty_fold_box = (fun a -> a); + ty_fold_mutable = (fun a -> a); ty_fold_constrained = (fun (a, _) -> a) } let ty_fold_bool_and (default:bool) : bool simple_ty_fold = |