File tree 4 files changed +12
-13
lines changed
typing-jkind-bounds/subsumption 4 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -370,17 +370,17 @@ end
370
370
Line 4 , characters 40-48 :
371
371
4 | type 'a t : immutable_data with 'a @@ portable contended portable
372
372
^^^^^^^^
373
- Warning 213 : This portability is overriden by meet_with ( portable ) later .
373
+ Warning 213 : This portability is overriden by portable later .
374
374
375
375
Line 4 , characters 40-48 :
376
376
4 | type 'a t : immutable_data with 'a @@ portable contended portable
377
377
^^^^^^^^
378
- Warning 213 : This portability is overriden by meet_with ( portable ) later .
378
+ Warning 213 : This portability is overriden by portable later .
379
379
380
380
Line 4 , characters 40-48 :
381
381
4 | type 'a t : immutable_data with 'a @@ portable contended portable
382
382
^^^^^^^^
383
- Warning 213 : This portability is overriden by meet_with ( portable ) later .
383
+ Warning 213 : This portability is overriden by portable later .
384
384
385
385
module M : sig type 'a t : immutable_data with 'a @@ portable end
386
386
|}]
Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ type t = Foo of global_ string @@ global
325
325
Line 1 , characters 16-23 :
326
326
1 | type t = Foo of global_ string @@ global
327
327
^^^^^^^
328
- Warning 213 : This locality is overriden by meet_with( global) later.
328
+ Warning 213 : This locality is overriden by global later.
329
329
330
330
type t = Foo of global_ string
331
331
|}]
@@ -354,7 +354,7 @@ type r = {
354
354
Line 2 , characters 2-9 :
355
355
2 | global_ x : string @@ global
356
356
^^^^^^^
357
- Warning 213 : This locality is overriden by meet_with ( global ) later .
357
+ Warning 213 : This locality is overriden by global later .
358
358
359
359
type r = { global_ x : string ; }
360
360
|}]
@@ -381,7 +381,7 @@ type r = {
381
381
Line 2 , characters 16-23 :
382
382
2 | x : string @@ aliased global many aliased
383
383
^^^^^^^
384
- Warning 213 : This uniqueness is overriden by join_with ( aliased ) later .
384
+ Warning 213 : This uniqueness is overriden by aliased later .
385
385
386
386
type r = { x : string @@ global many aliased ; }
387
387
|}]
Original file line number Diff line number Diff line change 45
45
Line 2 , characters 22-28 :
46
46
2 | val x : string @@ global local unique aliased once many uncontended contended
47
47
^^^^^^
48
- Warning 213 : This locality is overriden by meet_with ( local ) later .
48
+ Warning 213 : This locality is overriden by local later .
49
49
50
50
Line 2 , characters 50-54 :
51
51
2 | val x : string @@ global local unique aliased once many uncontended contended
52
52
^^^^
53
- Warning 213 : This linearity is overriden by meet_with ( many ) later .
53
+ Warning 213 : This linearity is overriden by many later .
54
54
55
55
Line 3 , characters 6-14 :
56
56
3 | portable nonportable
57
57
^^^^^^^^
58
- Warning 213 : This portability is overriden by meet_with( nonportable) later.
58
+ Warning 213 : This portability is overriden by nonportable later.
59
59
60
60
Line 2 , characters 35-41 :
61
61
2 | val x : string @@ global local unique aliased once many uncontended contended
62
62
^^^^^^
63
- Warning 213 : This uniqueness is overriden by join_with ( aliased ) later .
63
+ Warning 213 : This uniqueness is overriden by aliased later .
64
64
65
65
Line 2 , characters 60-71 :
66
66
2 | val x : string @@ global local unique aliased once many uncontended contended
67
67
^^^^^^^^^^^
68
- Warning 213 : This contention is overriden by join_with ( contended ) later .
68
+ Warning 213 : This contention is overriden by contended later .
69
69
70
70
module type S = sig val x : string @@ many aliased contended end
71
71
| }]
Original file line number Diff line number Diff line change @@ -559,7 +559,7 @@ let sort_dedup_modalities ~warn l =
559
559
if warn
560
560
then
561
561
let axis = Format. asprintf " %a" Value.Axis. print ax0 in
562
- let overriden_by = Format. asprintf " %a " Modality. print a1 in
562
+ let { txt = Modality overriden_by; _ } = untransl_modality a1 in
563
563
Location. prerr_warning loc0
564
564
(Warnings. Modal_axis_specified_twice { axis; overriden_by })
565
565
in
@@ -574,7 +574,6 @@ let transl_modalities ~maturity mut attrs modalities =
574
574
(* - mut_modalities is applied before explicit modalities.
575
575
- explicit modalities can override mut_modalities.
576
576
- For the same axis, later modalities overrides earlier modalities. *)
577
- (* CR zqian: warn if an axis is specified multiple times in a modality expr. *)
578
577
List. fold_left
579
578
(fun m (Atom (ax , a ) as t ) ->
580
579
let m = Value.Const. set ax a m in
You can’t perform that action at this time.
0 commit comments