diff options
| author | Gaëtan Gilbert | 2019-10-16 21:19:39 +0200 |
|---|---|---|
| committer | Gaëtan Gilbert | 2019-10-16 22:46:23 +0200 |
| commit | 3d977093338d95950b09c1fac2bd90f48c1fd4ab (patch) | |
| tree | a28e40172a59187272d607054ff47a8daf3d8be2 /engine/uState.ml | |
| parent | cc9856e33fa1a15fe699e8d9cd7b76086563683d (diff) | |
re-expose UState.demote_seff_univs
provide minimal functionality for https://github.com/mit-plv/rewriter
plugin (declaring inductives as side effects, so there's no private
constant to use with emit_side_effects)
Diffstat (limited to 'engine/uState.ml')
| -rw-r--r-- | engine/uState.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/uState.ml b/engine/uState.ml index af714f6282..efced52990 100644 --- a/engine/uState.ml +++ b/engine/uState.ml @@ -520,7 +520,7 @@ let merge ?loc ~sideff rigid uctx ctx' = let merge_subst uctx s = { uctx with uctx_univ_variables = LMap.subst_union uctx.uctx_univ_variables s } -let demote_seff_univs (univs,_) uctx = +let demote_seff_univs univs uctx = let seff = LSet.union uctx.uctx_seff_univs univs in { uctx with uctx_seff_univs = seff } @@ -541,7 +541,7 @@ let merge_seff uctx ctx' = let emit_side_effects eff u = let uctxs = Safe_typing.universes_of_private eff in List.fold_left (fun u uctx -> - let u = demote_seff_univs uctx u in + let u = demote_seff_univs (fst uctx) u in merge_seff u uctx) u uctxs |
