diff options
| author | herbelin | 2009-04-24 11:06:46 +0000 |
|---|---|---|
| committer | herbelin | 2009-04-24 11:06:46 +0000 |
| commit | ac4ba8bbc899c3d3db1f1f5e0592ee419ed92994 (patch) | |
| tree | 76553bf17254804a0173a023402a064ffd7e2b26 /toplevel/command.ml | |
| parent | cf71bfb25ddba52c72bdec4507021cd6e5ee06e8 (diff) | |
Backporting 12080 (fixing bug #2091 on bad rollback in the "where"
clause resulting in stray notations for e.g. variable named "le")
and 12083 (fixing bug in as clause of apply in) from trunk.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12103 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel/command.ml')
| -rw-r--r-- | toplevel/command.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toplevel/command.ml b/toplevel/command.ml index cb772714d6..ed21213ef4 100644 --- a/toplevel/command.ml +++ b/toplevel/command.ml @@ -541,7 +541,7 @@ let interp_mutual paramsl indl notations finite = let mldatas = List.map2 (mk_mltype_data evdref env_params params) arities indnames in let constructors = - States.with_heavy_rollback (fun () -> + States.with_state_protection (fun () -> (* Temporary declaration of notations and scopes *) List.iter (declare_interning_data impls) notations; (* Interpret the constructor types *) @@ -849,7 +849,7 @@ let interp_recursive fixkind l boxed = (* Interp bodies with rollback because temp use of notations/implicit *) let fixdefs = - States.with_heavy_rollback (fun () -> + States.with_state_protection (fun () -> List.iter (declare_interning_data impls) notations; list_map3 (interp_fix_body evdref env_rec impls) fixctxs fixl fixccls) () in |
