Skip to content

Commit 949f955

Browse files
committed
Ignore {value/constructor}_path unused value
Signed-off-by: Paul-Elliot <[email protected]>
1 parent 20221d9 commit 949f955

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/xref2/compile.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ and class_type_path : Env.t -> Paths.Path.ClassType.t -> Paths.Path.ClassType.t
7474
| Ok p' -> `Resolved Lang_of.(Path.resolved_class_type (empty ()) p')
7575
| Error _ -> p)
7676

77+
let () =
78+
(* Until those are used *)
79+
ignore value_path;
80+
ignore constructor_path
81+
7782
let rec unit env t =
7883
let open Compilation_unit in
7984
let source_info =

src/xref2/link.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ let constructor_path :
190190
Errors.report ~what:(`Constructor_path cp) ~tools_error:e `Lookup;
191191
p)
192192

193+
let () =
194+
(* Until those are used *)
195+
ignore value_path;
196+
ignore constructor_path
197+
193198
let class_type_path : Env.t -> Paths.Path.ClassType.t -> Paths.Path.ClassType.t
194199
=
195200
fun env p ->

0 commit comments

Comments
 (0)