2014-07-01 11:39:41 -05:00
|
|
|
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2014-07-18 07:45:17 -05:00
|
|
|
#![allow(non_snake_case)]
|
|
|
|
|
2014-11-14 11:18:10 -06:00
|
|
|
register_diagnostic! { E0001, r##"
|
2014-07-01 11:39:41 -05:00
|
|
|
This error suggests that the expression arm corresponding to the noted pattern
|
|
|
|
will never be reached as for all possible values of the expression being matched,
|
|
|
|
one of the preceeding patterns will match.
|
|
|
|
|
|
|
|
This means that perhaps some of the preceeding patterns are too general, this
|
|
|
|
one is too specific or the ordering is incorrect.
|
2014-11-14 11:18:10 -06:00
|
|
|
"## }
|
2014-07-11 11:54:01 -05:00
|
|
|
|
2014-11-14 11:18:10 -06:00
|
|
|
register_diagnostics! {
|
2014-07-11 11:54:01 -05:00
|
|
|
E0002,
|
|
|
|
E0003,
|
|
|
|
E0004,
|
|
|
|
E0005,
|
|
|
|
E0006,
|
|
|
|
E0007,
|
|
|
|
E0008,
|
|
|
|
E0009,
|
|
|
|
E0010,
|
|
|
|
E0011,
|
|
|
|
E0012,
|
|
|
|
E0014,
|
|
|
|
E0015,
|
|
|
|
E0016,
|
|
|
|
E0017,
|
2014-10-25 12:18:32 -05:00
|
|
|
E0018,
|
2014-07-11 11:54:01 -05:00
|
|
|
E0019,
|
|
|
|
E0020,
|
|
|
|
E0022,
|
2014-07-17 12:56:37 -05:00
|
|
|
E0109,
|
|
|
|
E0110,
|
|
|
|
E0133,
|
|
|
|
E0134,
|
|
|
|
E0135,
|
|
|
|
E0136,
|
|
|
|
E0137,
|
|
|
|
E0138,
|
|
|
|
E0139,
|
|
|
|
E0152,
|
2014-08-29 21:24:06 -05:00
|
|
|
E0158,
|
2014-09-30 11:52:40 -05:00
|
|
|
E0161,
|
2014-09-20 14:25:25 -05:00
|
|
|
E0162,
|
2014-10-24 14:14:37 -05:00
|
|
|
E0165,
|
2015-01-16 17:54:58 -06:00
|
|
|
E0170
|
2014-11-14 11:18:10 -06:00
|
|
|
}
|
2015-01-16 17:54:58 -06:00
|
|
|
|
|
|
|
__build_diagnostic_array! { DIAGNOSTICS }
|
|
|
|
|