aboutsummaryrefslogtreecommitdiff
path: root/src/boot/me
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-06-30 00:06:31 -0700
committerGraydon Hoare <[email protected]>2010-06-30 00:06:31 -0700
commitfc1b86e1cabf36c4d902db95fc8f0c6b0e2d21ef (patch)
treec7d196af63980a98b9b8da16de6d64aa155f7305 /src/boot/me
parentTeach the typechecker about the auto-dereference and auto-promote-to-mutable ... (diff)
downloadrust-fc1b86e1cabf36c4d902db95fc8f0c6b0e2d21ef.tar.xz
rust-fc1b86e1cabf36c4d902db95fc8f0c6b0e2d21ef.zip
Wrap long lines.
Diffstat (limited to 'src/boot/me')
-rw-r--r--src/boot/me/dwarf.ml5
-rw-r--r--src/boot/me/semant.ml5
-rw-r--r--src/boot/me/type.ml3
3 files changed, 9 insertions, 4 deletions
diff --git a/src/boot/me/dwarf.ml b/src/boot/me/dwarf.ml
index 410ff402..663ce9f5 100644
--- a/src/boot/me/dwarf.ml
+++ b/src/boot/me/dwarf.ml
@@ -1311,9 +1311,10 @@ let (abbrev_alias_slot:abbrev) =
;;
(* FIXME: Perverse, but given dwarf's vocabulary it seems at least plausible
- * that a "mutable const type" is a correct way of saying "mutable". Or else we
- * make up our own. Revisit perhaps.
+ * that a "mutable const type" is a correct way of saying "mutable".
+ * Or else we make up our own. Revisit perhaps.
*)
+
let (abbrev_mutable_type:abbrev) =
(DW_TAG_const_type, DW_CHILDREN_no,
[|
diff --git a/src/boot/me/semant.ml b/src/boot/me/semant.ml
index 746f83bf..031f1b40 100644
--- a/src/boot/me/semant.ml
+++ b/src/boot/me/semant.ml
@@ -676,7 +676,10 @@ type ('ty, 'tys, 'slot, 'slots, 'tag) ty_fold =
ty_fold_constrained : ('ty * Ast.constrs) -> 'ty }
;;
-let rec fold_ty (f:('ty, 'tys, 'slot, 'slots, 'tag) ty_fold) (ty:Ast.ty) : 'ty =
+let rec fold_ty
+ (f:('ty, 'tys, 'slot, 'slots, 'tag) ty_fold)
+ (ty:Ast.ty)
+ : 'ty =
let fold_slot (s:Ast.slot) : 'slot =
f.ty_fold_slot (s.Ast.slot_mode,
fold_ty f (slot_ty s))
diff --git a/src/boot/me/type.ml b/src/boot/me/type.ml
index e852965d..f25cc569 100644
--- a/src/boot/me/type.ml
+++ b/src/boot/me/type.ml
@@ -357,7 +357,8 @@ let process_crate (cx:ctxt) (crate:Ast.crate) : unit =
| (TYSPEC_resolved (params_a, ty_a),
TYSPEC_resolved (params_b, ty_b)) ->
if params_a <> params_b then fail()
- else TYSPEC_resolved (params_a, (unify_resolved_types ty_a ty_b))
+ else TYSPEC_resolved
+ (params_a, (unify_resolved_types ty_a ty_b))
| (TYSPEC_resolved (params, ty),
TYSPEC_callable (out_tv, in_tvs))