Skip to content

Commit dc45d92

Browse files
committed
Adjust error code
1 parent c4f78ad commit dc45d92

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustc_typeck/coherence/overlap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl<'cx, 'tcx,'v> intravisit::Visitor<'v> for OverlapChecker<'cx, 'tcx> {
120120
if let Some(prev_id) = prev_default_impl {
121121
let mut err = struct_span_err!(
122122
self.tcx.sess,
123-
self.tcx.span_of_impl(impl_def_id).unwrap(), E0519,
123+
self.tcx.span_of_impl(impl_def_id).unwrap(), E0521,
124124
"redundant default implementations of trait `{}`:",
125125
trait_ref);
126126
err.span_note(self.tcx.span_of_impl(self.tcx.map.local_def_id(prev_id))

src/librustc_typeck/diagnostics.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3696,6 +3696,6 @@ register_diagnostics! {
36963696
// type `{}` was overridden
36973697
E0436, // functional record update requires a struct
36983698
E0513, // no type for local variable ..
3699-
E0519, // redundant default implementations of trait
3700-
E0520 // cannot specialize non-default item
3699+
E0520, // cannot specialize non-default item
3700+
E0521 // redundant default implementations of trait
37013701
}

0 commit comments

Comments
 (0)