]> git.proxmox.com Git - rustc.git/blame - src/librustc_typeck/diagnostics.rs
Imported Upstream version 1.0.0~0alpha
[rustc.git] / src / librustc_typeck / diagnostics.rs
CommitLineData
1a4d82fc
JJ
1// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2// file at the top-level directory of this distribution and at
3// http://rust-lang.org/COPYRIGHT.
4//
5// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8// option. This file may not be copied, modified, or distributed
9// except according to those terms.
10
11#![allow(non_snake_case)]
12
13register_diagnostic! {
14 E0001,
15r##"
16 This error suggests that the expression arm corresponding to the noted pattern
17 will never be reached as for all possible values of the expression being matched,
18 one of the preceeding patterns will match.
19
20 This means that perhaps some of the preceeding patterns are too general, this
21 one is too specific or the ordering is incorrect.
22"## }
23
24register_diagnostics! {
25 E0002,
26 E0003,
27 E0004,
28 E0005,
29 E0006,
30 E0007,
31 E0008,
32 E0009,
33 E0010,
34 E0011,
35 E0012,
36 E0013,
37 E0014,
38 E0015,
39 E0016,
40 E0017,
41 E0018,
42 E0019,
43 E0020,
44 E0022,
45 E0023,
46 E0024,
47 E0025,
48 E0026,
49 E0027,
50 E0029,
51 E0030,
52 E0031,
53 E0033,
54 E0034,
55 E0035,
56 E0036,
57 E0038,
58 E0040, // explicit use of destructor method
59 E0044,
60 E0045,
61 E0046,
62 E0049,
63 E0050,
64 E0051,
65 E0052,
66 E0053,
67 E0054,
68 E0055,
69 E0056,
70 E0057,
71 E0059,
72 E0060,
73 E0061,
74 E0062,
75 E0063,
76 E0066,
77 E0067,
78 E0068,
79 E0069,
80 E0070,
81 E0071,
82 E0072,
83 E0073,
84 E0074,
85 E0075,
86 E0076,
87 E0077,
88 E0079,
89 E0080,
90 E0081,
91 E0082,
92 E0083,
93 E0084,
94 E0085,
95 E0086,
96 E0087,
97 E0088,
98 E0089,
99 E0090,
100 E0091,
101 E0092,
102 E0093,
103 E0094,
104 E0100,
105 E0101,
106 E0102,
107 E0103,
108 E0104,
109 E0106,
110 E0107,
111 E0108,
112 E0109,
113 E0110,
114 E0116,
115 E0117,
116 E0118,
117 E0119,
118 E0120,
119 E0121,
120 E0122,
121 E0124,
122 E0127,
123 E0128,
124 E0129,
125 E0130,
126 E0131,
127 E0132,
128 E0133,
129 E0134,
130 E0135,
131 E0136,
132 E0137,
133 E0138,
134 E0139,
135 E0140,
136 E0141,
137 E0152,
138 E0153,
139 E0157,
140 E0158,
141 E0159,
142 E0161,
143 E0162,
144 E0163,
145 E0164,
146 E0165,
147 E0166,
148 E0167,
149 E0168,
150 E0169,
151 E0171,
152 E0172,
153 E0173, // manual implementations of unboxed closure traits are experimental
154 E0174, // explicit use of unboxed closure methods are experimental
155 E0177,
156 E0178,
157 E0180,
158 E0181,
159 E0182,
160 E0183,
161 E0184
162}