File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 1010- Compiler:
1111 - Fix `=!=>` that was adding a head cut, rather than a tail cut, in some
1212 cases
13+ - Fix compilation bug concerning `Loc.t` being erroneusly compared
1314
1415# v3.3.1 (September 2025)
1516
Original file line number Diff line number Diff line change @@ -161,6 +161,10 @@ module Loc = struct
161161
162162 let pp fmt l = Fmt. fprintf fmt " @[%s@]" (to_string l)
163163 let show l = to_string l
164+
165+ (* WARNING: loc comparison must be correct, otherwise two occurrences of
166+ the samy symbol may be compiled to different constants (e.g. if the payload
167+ is different) *)
164168 let compare l1 l2 =
165169 let x = Stdlib. compare l1.source_start l2.source_start in
166170 if x = 0 then Stdlib. compare { l1 with client_payload = None } { l2 with client_payload = None } else x
You can’t perform that action at this time.
0 commit comments