Fix duplicate error code

This commit is contained in:
Vadim Petrochenkov 2015-02-12 20:31:31 +03:00
parent 6457c9fce2
commit 8ed58d8ccc
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ register_diagnostics! {
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
E0316 // user-defined types or type parameters cannot shadow the primitive types
E0317 // user-defined types or type parameters cannot shadow the primitive types
}
__build_diagnostic_array! { DIAGNOSTICS }

View File

@ -2786,7 +2786,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
fn check_if_primitive_type_name(&self, name: Name, span: Span) {
if let Some(_) = self.primitive_type_table.primitive_types.get(&name) {
span_err!(self.session, span, E0316,
span_err!(self.session, span, E0317,
"user-defined types or type parameters cannot shadow the primitive types");
}
}