Skip to content

Commit cab8f03

Browse files
committed
Add missing open and module qualification.
1 parent 1170565 commit cab8f03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ppx_regexp.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ let transform_cases ~loc e cases =
124124
| {pc_lhs = {ppat_desc = Ppat_any}; pc_rhs} :: cases ->
125125
(cases, pc_rhs)
126126
| cases ->
127-
let pos = loc.loc_start in
127+
let open Lexing in
128+
let pos = loc.Location.loc_start in
128129
let e0 = Exp.constant (Const.string pos.pos_fname) in
129130
let e1 = Exp.constant (Const.int pos.pos_lnum) in
130131
let e2 = Exp.constant (Const.int (pos.pos_cnum - pos.pos_bol)) in

0 commit comments

Comments
 (0)