cf636c233d
Names of structs, enums, traits, type aliases and type parameters (i.e. all identifiers that can be used as full paths in type position) are not allowed to match the names of primitive types. See #20427 for more information. This is a minor [breaking-change]
31 lines
1.3 KiB
Rust
31 lines
1.3 KiB
Rust
// 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! {
|
|
E0154,
|
|
E0157,
|
|
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
|
|
E0258, // import conflicts with existing submodule
|
|
E0259, // an extern crate has already been imported into this module
|
|
E0260, // name conflicts with an external crate that has been imported into this module
|
|
E0317 // user-defined types or type parameters cannot shadow the primitive types
|
|
}
|
|
|
|
__build_diagnostic_array! { DIAGNOSTICS }
|