aboutsummaryrefslogtreecommitdiffhomepage
path: root/contrib/ring/quote.ml
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ring/quote.ml')
-rw-r--r--contrib/ring/quote.ml7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/ring/quote.ml b/contrib/ring/quote.ml
index ed93a13dc..44cbd7868 100644
--- a/contrib/ring/quote.ml
+++ b/contrib/ring/quote.ml
@@ -113,8 +113,11 @@ open Proof_type
the constants are loaded in the environment *)
let constant dir s =
- Declare.global_absolute_reference
- (make_path ("Coq"::"ring"::dir) (id_of_string s) CCI)
+ let dir = "Coq"::"ring"::dir in
+ try
+ Declare.global_reference_in_absolute_module dir (id_of_string s)
+ with Not_found ->
+ anomaly ("Quote: cannot find "^(string_of_qualid (make_qualid dir s)))
let coq_Empty_vm = lazy (constant ["Quote"] "Empty_vm")
let coq_Node_vm = lazy (constant ["Quote"] "Node_vm")