aboutsummaryrefslogtreecommitdiff
path: root/interp/notation.ml
diff options
context:
space:
mode:
authorHugo Herbelin2019-09-04 17:13:57 +0200
committerHugo Herbelin2019-09-04 17:13:57 +0200
commita37b34723778679203af09f5f63476ea2204ceb0 (patch)
tree053ebcc5dd2983dfc565c8dac591b894a5dd3d6e /interp/notation.ml
parent94aff06e49681ab5b88865c9c2ed2ce459c170f4 (diff)
parent47eacb1be09e6c4e634d9555fe2938eff2622fe1 (diff)
Merge PR #10729: Locations for notation deprecation warnings
Reviewed-by: herbelin
Diffstat (limited to 'interp/notation.ml')
-rw-r--r--interp/notation.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/interp/notation.ml b/interp/notation.ml
index a78bc60e83..ea2173860d 100644
--- a/interp/notation.ml
+++ b/interp/notation.ml
@@ -1205,7 +1205,7 @@ let interp_notation ?loc ntn local_scopes =
let scopes = make_current_scopes local_scopes in
try
let (n,sc) = find_interpretation ntn (find_notation ntn) scopes in
- Option.iter (fun d -> warn_deprecated_notation (ntn,d)) n.not_deprecation;
+ Option.iter (fun d -> warn_deprecated_notation ?loc (ntn,d)) n.not_deprecation;
n.not_interp, (n.not_location, sc)
with Not_found ->
user_err ?loc