diff options
| author | Hugo Herbelin | 2019-09-09 14:22:43 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2019-09-09 14:22:43 +0200 |
| commit | 9ee962e7c18aebd214e3be4fda2c36f5e9c65405 (patch) | |
| tree | fa906760ff1e9a398893ca0844564e64e4f6f8fb /stm | |
| parent | 110e87a2bee21c112f7fc4291e5a7b7e5180217b (diff) | |
| parent | 9b7816a80c77d7f9b4cea35f8ed983763bd8a5c7 (diff) | |
Merge PR #10605: [toplevel] Make all argument lists to be in user-declared order.
Reviewed-by: herbelin
Diffstat (limited to 'stm')
| -rw-r--r-- | stm/stm.ml | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/stm/stm.ml b/stm/stm.ml index 7f0632bd7c..1042061021 100644 --- a/stm/stm.ml +++ b/stm/stm.ml @@ -2617,13 +2617,10 @@ let dirpath_of_file f = let new_doc { doc_type ; iload_path; require_libs; stm_options } = - let load_objs libs = - let rq_file (dir, from, exp) = - let mp = Libnames.qualid_of_string dir in - let mfrom = Option.map Libnames.qualid_of_string from in - Flags.silently (Vernacentries.vernac_require mfrom exp) [mp] in - List.(iter rq_file (rev libs)) - in + let require_file (dir, from, exp) = + let mp = Libnames.qualid_of_string dir in + let mfrom = Option.map Libnames.qualid_of_string from in + Flags.silently (Vernacentries.vernac_require mfrom exp) [mp] in (* Set the options from the new documents *) AsyncOpts.cur_opt := stm_options; @@ -2662,7 +2659,7 @@ let new_doc { doc_type ; iload_path; require_libs; stm_options } = end; (* Import initial libraries. *) - load_objs require_libs; + List.iter require_file require_libs; (* We record the state at this point! *) State.define ~doc ~cache:true ~redefine:true (fun () -> ()) Stateid.initial; |
