We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a5a4966 + d3b892f commit 9696e45Copy full SHA for 9696e45
vernac/declaremods.ml
@@ -742,11 +742,11 @@ let rec get_module_sobjs is_mod env inl = function
742
743
let debug_print_modtab () =
744
let pr_seg = function
745
- | [] -> str "[]"
746
- | l -> str "[." ++ int (List.length l) ++ str ".]"
+ | 0 -> str "[]"
+ | l -> str "[." ++ int l ++ str ".]"
747
in
748
let pr_modinfo mp modobjs s =
749
- let objs = List.map ignore modobjs.module_substituted_objects @ List.map ignore modobjs.module_keep_objects.keep_objects in
+ let objs = List.length modobjs.module_substituted_objects + List.length modobjs.module_keep_objects.keep_objects in
750
s ++ str (ModPath.to_string mp) ++ spc () ++ pr_seg objs
751
752
let modules = MPmap.fold pr_modinfo (ModObjs.all ()) (mt ()) in
0 commit comments