aboutsummaryrefslogtreecommitdiff
path: root/pretyping
diff options
context:
space:
mode:
Diffstat (limited to 'pretyping')
-rw-r--r--pretyping/pattern.ml6
-rw-r--r--pretyping/pattern.mli1
2 files changed, 1 insertions, 6 deletions
diff --git a/pretyping/pattern.ml b/pretyping/pattern.ml
index f423777d9b..66125bfeb0 100644
--- a/pretyping/pattern.ml
+++ b/pretyping/pattern.ml
@@ -50,10 +50,6 @@ type constr_label =
| IndNode of inductive_path
| CstrNode of constructor_path
| VarNode of identifier
- | SectionVarNode of section_path
-(*
- | ...
-*)
exception BoundPattern;;
@@ -61,7 +57,7 @@ let label_of_ref = function
| ConstRef sp -> ConstNode sp
| IndRef sp -> IndNode sp
| ConstructRef sp -> CstrNode sp
- | VarRef sp -> SectionVarNode sp
+ | VarRef sp -> VarNode (basename sp)
let rec head_pattern_bound t =
match t with
diff --git a/pretyping/pattern.mli b/pretyping/pattern.mli
index e687e5cbc4..91dd32ba3d 100644
--- a/pretyping/pattern.mli
+++ b/pretyping/pattern.mli
@@ -38,7 +38,6 @@ type constr_label =
| IndNode of inductive_path
| CstrNode of constructor_path
| VarNode of identifier
- | SectionVarNode of section_path
val label_of_ref : global_reference -> constr_label