]> git.lizzy.rs Git - rust.git/blob - src/librustc/diagnostics.rs
debuginfo: Make debuginfo source location assignment more stable (Pt. 1)
[rust.git] / src / librustc / diagnostics.rs
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
13 register_diagnostic! { E0001, r##"
14     This error suggests that the expression arm corresponding to the noted pattern
15     will never be reached as for all possible values of the expression being matched,
16     one of the preceeding patterns will match.
17
18     This means that perhaps some of the preceeding patterns are too general, this
19     one is too specific or the ordering is incorrect.
20 "## }
21
22 register_diagnostics! {
23     E0002,
24     E0003,
25     E0004,
26     E0005,
27     E0006,
28     E0007,
29     E0008,
30     E0009,
31     E0010,
32     E0011,
33     E0012,
34     E0013,
35     E0014,
36     E0015,
37     E0016,
38     E0017,
39     E0018,
40     E0019,
41     E0020,
42     E0022,
43     E0109,
44     E0110,
45     E0133,
46     E0134,
47     E0135,
48     E0136,
49     E0137,
50     E0138,
51     E0139,
52     E0140,
53     E0152,
54     E0153,
55     E0157,
56     E0158,
57     E0161,
58     E0162,
59     E0165,
60     E0166,
61     E0167,
62     E0168,
63     E0169,
64     E0170,
65     E0171,
66     E0172,
67     E0173,
68     E0174,
69     E0177,
70     E0178,
71     E0179
72 }