aboutsummaryrefslogtreecommitdiffhomepage
path: root/printing
diff options
context:
space:
mode:
authorGravatar Maxime Dénès <mail@maximedenes.fr>2017-11-21 13:58:08 +0100
committerGravatar Maxime Dénès <mail@maximedenes.fr>2017-11-21 13:58:08 +0100
commitb75beb248873db7d9ab8e4a078022b2ed0edcd36 (patch)
tree4d2bc9d39c1f6d7c4d00223143f18ae5bad500e5 /printing
parent0e01de69c22a3793855b4c97c50e4514191b19bc (diff)
parent094b577f61f105f0a92f3f84d7e739884dd993a7 (diff)
Merge PR #6185: [parser] Remove unnecessary statically initialized hook.
Diffstat (limited to 'printing')
-rw-r--r--printing/ppconstr.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/printing/ppconstr.ml b/printing/ppconstr.ml
index 0f6452de6..bce5710d6 100644
--- a/printing/ppconstr.ml
+++ b/printing/ppconstr.ml
@@ -396,7 +396,7 @@ let tag_var = tag Tag.variable
extract_prod_binders c
| { loc; v = CProdN ([[_,Name id],bk,t],
{ v = CCases (LetPatternStyle,None, [{ v = CRef (Ident (_,id'),None)},None,None],[(_,([_,[p]],b))])} ) }
- when Id.equal id id' && not (Id.Set.mem id (Topconstr.free_vars_of_constr_expr b)) ->
+ when Id.equal id id' && not (Id.Set.mem id (free_vars_of_constr_expr b)) ->
let bl,c = extract_prod_binders b in
CLocalPattern (loc, (p,None)) :: bl, c
| { loc; v = CProdN ((nal,bk,t)::bl,c) } ->
@@ -412,7 +412,7 @@ let tag_var = tag Tag.variable
extract_lam_binders c
| CLambdaN ([[_,Name id],bk,t],
{ v = CCases (LetPatternStyle,None, [{ v = CRef (Ident (_,id'),None)},None,None],[(_,([_,[p]],b))])} )
- when Id.equal id id' && not (Id.Set.mem id (Topconstr.free_vars_of_constr_expr b)) ->
+ when Id.equal id id' && not (Id.Set.mem id (free_vars_of_constr_expr b)) ->
let bl,c = extract_lam_binders b in
CLocalPattern (ce.loc,(p,None)) :: bl, c
| CLambdaN ((nal,bk,t)::bl,c) ->
@@ -430,7 +430,7 @@ let tag_var = tag Tag.variable
let rename na na' t c =
match (na,na') with
| (_,Name id), (_,Name id') ->
- (na',t,Topconstr.replace_vars_constr_expr (Id.Map.singleton id id') c)
+ (na',t,replace_vars_constr_expr (Id.Map.singleton id id') c)
| (_,Name id), (_,Anonymous) -> (na,t,c)
| _ -> (na',t,c)