Skip to content

Commit 705469b

Browse files
authored
tweak warning numbers
1 parent bac134f commit 705469b

File tree

2 files changed

+2
-77
lines changed

2 files changed

+2
-77
lines changed

src/common/WarningFlagDescription.mjs

Lines changed: 1 addition & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ var numeric = [
3333
6,
3434
"Label omitted in function application."
3535
],
36-
[
37-
7,
38-
"Method overridden."
39-
],
4036
[
4137
8,
4238
"Partial match: missing cases in pattern-matching."
@@ -57,34 +53,14 @@ var numeric = [
5753
12,
5854
"Redundant sub-pattern in a pattern-matching."
5955
],
60-
[
61-
13,
62-
"Instance variable overridden."
63-
],
6456
[
6557
14,
6658
"Illegal backslash escape in a string constant."
6759
],
68-
[
69-
15,
70-
"Private method made public implicitly."
71-
],
7260
[
7361
16,
7462
"Unerasable optional argument."
7563
],
76-
[
77-
17,
78-
"Undeclared virtual method."
79-
],
80-
[
81-
18,
82-
"Non-principal type."
83-
],
84-
[
85-
19,
86-
"Type without principality."
87-
],
8864
[
8965
20,
9066
"Unused function argument."
@@ -93,21 +69,13 @@ var numeric = [
9369
21,
9470
"Non-returning statement."
9571
],
96-
[
97-
22,
98-
"Preprocessor warning."
99-
],
10072
[
10173
23,
10274
"Useless record \"with\" clause."
10375
],
10476
[
10577
24,
106-
"Bad module name: the source file name is not a valid OCaml module name."
107-
],
108-
[
109-
25,
110-
"Deprecated: now part of warning 8."
78+
"Bad module name: the source file name is not a valid ReScript module name."
11179
],
11280
[
11381
26,
@@ -129,10 +97,6 @@ var numeric = [
12997
30,
13098
"Two labels or constructors of the same name are defined in two mutually recursive types."
13199
],
132-
[
133-
31,
134-
"A module is linked twice in the same executable."
135-
],
136100
[
137101
32,
138102
"Unused value declaration."
@@ -165,18 +129,6 @@ var numeric = [
165129
39,
166130
"Unused rec flag."
167131
],
168-
[
169-
40,
170-
"Constructor or label name used out of scope."
171-
],
172-
[
173-
41,
174-
"Ambiguous constructor or label name."
175-
],
176-
[
177-
42,
178-
"Disambiguated constructor or label name (compatibility warning)."
179-
],
180132
[
181133
43,
182134
"Nonoptional label applied as optional."
@@ -209,10 +161,6 @@ var numeric = [
209161
50,
210162
"Unexpected documentation comment."
211163
],
212-
[
213-
51,
214-
"Warning on non-tail calls if @tailcall present."
215-
],
216164
[
217165
52,
218166
"Fragile constant pattern."
@@ -225,10 +173,6 @@ var numeric = [
225173
54,
226174
"Attribute used more than once on an expression"
227175
],
228-
[
229-
55,
230-
"Inlining impossible"
231-
],
232176
[
233177
56,
234178
"Unreachable case in a pattern-matching (based on type information)."
@@ -237,10 +181,6 @@ var numeric = [
237181
57,
238182
"Ambiguous or-pattern variables under guard"
239183
],
240-
[
241-
58,
242-
"Missing cmx file"
243-
],
244184
[
245185
59,
246186
"Assignment to non-mutable value"

src/common/WarningFlagDescription.res

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ let numeric = [
88
),
99
(5, "Partially applied function: expression whose result has function type and is ignored."),
1010
(6, "Label omitted in function application."),
11-
(7, "Method overridden."),
1211
(8, "Partial match: missing cases in pattern-matching."),
1312
(9, "Missing fields in a record pattern."),
1413
(
@@ -17,19 +16,12 @@ let numeric = [
1716
),
1817
(11, "Redundant case in a pattern matching (unused match case)."),
1918
(12, "Redundant sub-pattern in a pattern-matching."),
20-
(13, "Instance variable overridden."),
2119
(14, "Illegal backslash escape in a string constant."),
22-
(15, "Private method made public implicitly."),
2320
(16, "Unerasable optional argument."),
24-
(17, "Undeclared virtual method."),
25-
(18, "Non-principal type."),
26-
(19, "Type without principality."),
2721
(20, "Unused function argument."),
2822
(21, "Non-returning statement."),
29-
(22, "Preprocessor warning."),
3023
(23, "Useless record \"with\" clause."),
31-
(24, "Bad module name: the source file name is not a valid OCaml module name."),
32-
(25, "Deprecated: now part of warning 8."),
24+
(24, "Bad module name: the source file name is not a valid ReScript module name."),
3325
(
3426
26,
3527
"Suspicious unused variable: unused variable that is bound with \"let\" or \"as\", and doesn't start with an underscore (\"_\") character.",
@@ -41,7 +33,6 @@ let numeric = [
4133
(28, "Wildcard pattern given as argument to a constant constructor."),
4234
(29, "Unescaped end-of-line in a string constant (non-portable code)."),
4335
(30, "Two labels or constructors of the same name are defined in two mutually recursive types."),
44-
(31, "A module is linked twice in the same executable."),
4536
(32, "Unused value declaration."),
4637
(33, "Unused open statement."),
4738
(34, "Unused type declaration."),
@@ -50,9 +41,6 @@ let numeric = [
5041
(37, "Unused constructor."),
5142
(38, "Unused extension constructor."),
5243
(39, "Unused rec flag."),
53-
(40, "Constructor or label name used out of scope."),
54-
(41, "Ambiguous constructor or label name."),
55-
(42, "Disambiguated constructor or label name (compatibility warning)."),
5644
(43, "Nonoptional label applied as optional."),
5745
(44, "Open statement shadows an already defined identifier."),
5846
(45, "Open statement shadows an already defined label or constructor."),
@@ -61,14 +49,11 @@ let numeric = [
6149
(48, "Implicit elimination of optional arguments."),
6250
(49, "Absent cmi file when looking up module alias."),
6351
(50, "Unexpected documentation comment."),
64-
(51, "Warning on non-tail calls if @tailcall present."),
6552
(52, "Fragile constant pattern."),
6653
(53, "Attribute cannot appear in this context"),
6754
(54, "Attribute used more than once on an expression"),
68-
(55, "Inlining impossible"),
6955
(56, "Unreachable case in a pattern-matching (based on type information)."),
7056
(57, "Ambiguous or-pattern variables under guard"),
71-
(58, "Missing cmx file"),
7257
(59, "Assignment to non-mutable value"),
7358
(60, "Unused module declaration"),
7459
(61, "Unboxable type in primitive declaration"),

0 commit comments

Comments
 (0)