aboutsummaryrefslogtreecommitdiff
path: root/checker/declarations.ml
diff options
context:
space:
mode:
authorMaxime Dénès2018-02-19 11:17:43 +0100
committerMaxime Dénès2018-02-19 11:17:43 +0100
commitaec63ba9c8f6840d98ba731640a786138d836343 (patch)
tree4cb8fd89ef12bfba60188bfdccaafc5a9ab6007d /checker/declarations.ml
parentf0147fd87440396aeaee5eada538e09423fe299e (diff)
parent19b04b2bd1c5b505c70723a16505fcb3e6d41ede (diff)
Merge PR #6728: Extrude monomorphic universe contexts from with Definition constraints.
Diffstat (limited to 'checker/declarations.ml')
-rw-r--r--checker/declarations.ml6
1 files changed, 1 insertions, 5 deletions
diff --git a/checker/declarations.ml b/checker/declarations.ml
index 15b1f0a0c6..2fe930dca2 100644
--- a/checker/declarations.ml
+++ b/checker/declarations.ml
@@ -573,14 +573,10 @@ let implem_map fs fa = function
| Algebraic a -> Algebraic (fa a)
| impl -> impl
-let subst_with_body sub = function
- | WithMod(id,mp) -> WithMod(id,subst_mp sub mp)
- | WithDef(id,(c,ctx)) -> WithDef(id,(subst_mps sub c,ctx))
-
let rec subst_expr sub = function
| MEident mp -> MEident (subst_mp sub mp)
| MEapply (me1,mp2)-> MEapply (subst_expr sub me1, subst_mp sub mp2)
- | MEwith (me,wd)-> MEwith (subst_expr sub me, subst_with_body sub wd)
+ | MEwith (me,wd)-> MEwith (subst_expr sub me, wd)
let rec subst_expression sub me =
functor_map (subst_module_type sub) (subst_expr sub) me