rust/src/librustc_resolve/diagnostics.rs

31 lines
1.3 KiB
Rust
Raw Normal View History

// 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.
#![allow(non_snake_case)]
register_diagnostics! {
2015-01-21 11:56:52 -08:00
E0154,
E0157,
2015-01-18 13:46:57 -08:00
E0153,
E0251, // a named type or value has already been imported in this module
E0252, // a named type or value has already been imported in this module
E0253, // not directly importable
E0254, // import conflicts with imported crate in this module
E0255, // import conflicts with value in this module
E0256, // import conflicts with type in this module
E0257, // inherent implementations are only allowed on types defined in the current module
2015-01-18 13:46:57 -08:00
E0258, // import conflicts with existing submodule
E0259, // an extern crate has already been imported into this module
2015-02-08 19:29:47 +03:00
E0260, // name conflicts with an external crate that has been imported into this module
2015-02-12 20:31:31 +03:00
E0317 // user-defined types or type parameters cannot shadow the primitive types
}
__build_diagnostic_array! { DIAGNOSTICS }