Fix duplicate error code
This commit is contained in:
parent
6457c9fce2
commit
8ed58d8ccc
@ -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 }
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user