]> git.lizzy.rs Git - rust.git/blob - src/librustc_resolve/diagnostics.rs
5361cf3a79a6eaa847ce621187417d8d7bdbe42f
[rust.git] / src / librustc_resolve / 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_diagnostics! {
14     E0154,
15     E0157,
16     E0153,
17     E0251, // a named type or value has already been imported in this module
18     E0252, // a named type or value has already been imported in this module
19     E0253, // not directly importable
20     E0254, // import conflicts with imported crate in this module
21     E0255, // import conflicts with value in this module
22     E0256, // import conflicts with type in this module
23     E0257, // inherent implementations are only allowen on types defined in the current module
24     E0258, // import conflicts with existing submodule
25     E0259, // an extern crate has already been imported into this module
26     E0260, // name conflicts with an external crate that has been imported into this module
27     E0316 // user-defined types or type parameters cannot shadow the primitive types
28 }
29
30 __build_diagnostic_array! { DIAGNOSTICS }