aboutsummaryrefslogtreecommitdiffhomepage
path: root/checker
diff options
context:
space:
mode:
authorGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2017-01-17 23:40:35 +0100
committerGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2017-04-25 00:00:43 +0200
commit30d3515546cf244837c6340b6b87c5f51e68cbf4 (patch)
tree70dd074f483c34e9f71da20edf878062a4b5b3af /checker
parent84eb5cd72a015c45337a5a6070c5651f56be6e74 (diff)
[location] Remove Loc.ghost.
Now it is a private field, locations are optional.
Diffstat (limited to 'checker')
-rw-r--r--checker/modops.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/checker/modops.ml b/checker/modops.ml
index aba9da2fe..07dda8a06 100644
--- a/checker/modops.ml
+++ b/checker/modops.ml
@@ -32,10 +32,10 @@ let error_no_such_label_sub l l1 =
error ("The field "^
Label.to_string l^" is missing in "^l1^".")
-let error_not_a_module_loc loc s =
- user_err ~loc (str ("\""^Label.to_string s^"\" is not a module"))
+let error_not_a_module_loc ?loc s =
+ user_err ?loc (str ("\""^Label.to_string s^"\" is not a module"))
-let error_not_a_module s = error_not_a_module_loc Loc.ghost s
+let error_not_a_module s = error_not_a_module_loc s
let error_with_module () =
error "Unsupported 'with' constraint in module implementation"