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,
|
|
|
|
E0013,
|
|
|
|
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,
|
|
|
|
E0140,
|
|
|
|
E0152,
|
|
|
|
E0153,
|
2014-08-17 15:10:25 -05:00
|
|
|
E0157,
|
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,
|
2014-11-03 20:52:52 -06:00
|
|
|
E0166,
|
2014-11-16 13:55:17 -06:00
|
|
|
E0167,
|
2014-11-15 15:53:07 -06:00
|
|
|
E0168,
|
2014-11-20 14:05:29 -06:00
|
|
|
E0169,
|
|
|
|
E0170,
|
2014-11-26 13:17:23 -06:00
|
|
|
E0171,
|
2014-11-28 22:08:30 -06:00
|
|
|
E0172,
|
|
|
|
E0173,
|
|
|
|
E0174,
|
|
|
|
E0177,
|
2014-12-02 17:03:02 -06:00
|
|
|
E0178
|
2014-11-14 11:18:10 -06:00
|
|
|
}
|