Skip to content

Commit

Permalink
Replace deprecated or with ||
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejbauer committed Dec 24, 2013
1 parent 8eaf328 commit 2f6cd0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/constraints.ml
Expand Up @@ -74,7 +74,7 @@ let fold_region f g acc = Region.fold_edges f g.region_graph acc
let fold_dirt f g acc = Dirt.fold_edges f g.dirt_graph acc

let add_ty_constraint ty1 ty2 cstr =
let within, without = List.partition (fun g -> Ty.mem ty1 g or Ty.mem ty2 g) cstr.ty_graph in
let within, without = List.partition (fun g -> Ty.mem ty1 g || Ty.mem ty2 g) cstr.ty_graph in
let new_graphs =
match within with
| [] -> (Ty.add_edge ty1 ty2 Ty.empty) :: without
Expand Down
12 changes: 6 additions & 6 deletions src/tctx.ml
Expand Up @@ -318,8 +318,8 @@ let extend_with_variances ~pos tydefs =
begin match Common.lookup p ps with
| None -> assert false
| Some (posvar, negvar) ->
posvar := !posvar or posi;
negvar := !negvar or nega
posvar := !posvar || posi;
negvar := !negvar || nega
end
| T.Apply (t, (tys, drts, rgns)) ->
begin match Common.lookup t !tctx with
Expand Down Expand Up @@ -395,15 +395,15 @@ let extend_with_variances ~pos tydefs =
begin match Common.lookup d ds with
| None -> assert false
| Some (posvar, negvar) ->
posvar := !posvar or posi;
negvar := !negvar or nega
posvar := !posvar || posi;
negvar := !negvar || nega
end
and region_param posi nega r =
begin match Common.lookup r rs with
| None -> assert false
| Some (posvar, negvar) ->
posvar := !posvar or posi;
negvar := !negvar or nega
posvar := !posvar || posi;
negvar := !negvar || nega
end
in match def with
| Record tys -> List.iter (fun (_, t) -> ty true false t) tys
Expand Down

0 comments on commit 2f6cd0a

Please sign in to comment.