@@ -140,7 +140,7 @@ type type_mismatch =
140
140
| Field_type of Ident .t
141
141
| Field_mutable of Ident .t
142
142
| Field_arity of Ident .t
143
- | Field_names of int * Ident .t * Ident .t
143
+ | Field_names of int * string * string
144
144
| Field_missing of bool * Ident .t
145
145
| Record_representation of bool (* true means second one is unboxed float *)
146
146
| Unboxed_representation of bool (* true means second one is unboxed *)
@@ -163,7 +163,7 @@ let report_type_mismatch0 first second decl ppf err =
163
163
pr " The arities for field %s differ" (Ident. name s)
164
164
| Field_names (n , name1 , name2 ) ->
165
165
pr " Fields number %i have different names, %s and %s"
166
- n ( Ident. name name1) ( Ident. name name2)
166
+ n name1 name2
167
167
| Field_missing (b , s ) ->
168
168
pr " The field %s is only present in %s %s"
169
169
(Ident. name s) (if b then second else first) decl
@@ -204,7 +204,7 @@ and compare_variants ~loc env params1 params2 n
204
204
| c ::_ , [] -> [Field_missing (false , c.Types. cd_id)]
205
205
| cd1 ::rem1 , cd2 ::rem2 ->
206
206
if Ident. name cd1.cd_id <> Ident. name cd2.cd_id then
207
- [Field_names (n, cd1.cd_id, cd2.cd_id)]
207
+ [Field_names (n, cd1.cd_id.name , cd2.cd_id.name )]
208
208
else begin
209
209
Builtin_attributes. check_deprecated_inclusion
210
210
~def: cd1.cd_loc
@@ -239,7 +239,7 @@ and compare_records ~loc env params1 params2 n
239
239
| l ::_ , [] -> [Field_missing (false , l.Types. ld_id)]
240
240
| ld1 ::rem1 , ld2 ::rem2 ->
241
241
if Ident. name ld1.ld_id <> Ident. name ld2.ld_id
242
- then [Field_names (n, ld1.ld_id, ld2.ld_id)]
242
+ then [Field_names (n, ld1.ld_id.name , ld2.ld_id.name )]
243
243
else if ld1.ld_mutable <> ld2.ld_mutable then [Field_mutable ld1.ld_id] else begin
244
244
Builtin_attributes. check_deprecated_mutable_inclusion
245
245
~def: ld1.ld_loc
0 commit comments