diff options
Diffstat (limited to 'parsing/coqlib.ml')
| -rw-r--r-- | parsing/coqlib.ml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/parsing/coqlib.ml b/parsing/coqlib.ml index 94c23ef197..b0a7f3a8a2 100644 --- a/parsing/coqlib.ml +++ b/parsing/coqlib.ml @@ -20,10 +20,11 @@ let glob_My_special_variable_nat = ConstRef myvar_path let reference dir s = let dir = "Coq"::"Init"::[dir] in + let id = id_of_string s in try - Nametab.locate_in_absolute_module dir (id_of_string s) + Nametab.locate_in_absolute_module dir id with Not_found -> - anomaly ("Coqlib: cannot find "^(string_of_qualid (make_qualid dir s))) + anomaly ("Coqlib: cannot find "^(string_of_qualid (make_qualid dir id))) let constant dir s = Declare.constr_of_reference Evd.empty (Global.env()) (reference dir s) |
