Skip to content

Commit 8ed58d8

Browse files
committed
Fix duplicate error code
1 parent 6457c9f commit 8ed58d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_resolve/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ register_diagnostics! {
2424
E0258, // import conflicts with existing submodule
2525
E0259, // an extern crate has already been imported into this module
2626
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
27+
E0317 // user-defined types or type parameters cannot shadow the primitive types
2828
}
2929

3030
__build_diagnostic_array! { DIAGNOSTICS }

src/librustc_resolve/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2786,7 +2786,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
27862786

27872787
fn check_if_primitive_type_name(&self, name: Name, span: Span) {
27882788
if let Some(_) = self.primitive_type_table.primitive_types.get(&name) {
2789-
span_err!(self.session, span, E0316,
2789+
span_err!(self.session, span, E0317,
27902790
"user-defined types or type parameters cannot shadow the primitive types");
27912791
}
27922792
}

0 commit comments

Comments
 (0)