Adjust error code
This commit is contained in:
parent
c4f78ad7bf
commit
dc45d924b6
2 changed files with 3 additions and 3 deletions
|
@ -120,7 +120,7 @@ impl<'cx, 'tcx,'v> intravisit::Visitor<'v> for OverlapChecker<'cx, 'tcx> {
|
||||||
if let Some(prev_id) = prev_default_impl {
|
if let Some(prev_id) = prev_default_impl {
|
||||||
let mut err = struct_span_err!(
|
let mut err = struct_span_err!(
|
||||||
self.tcx.sess,
|
self.tcx.sess,
|
||||||
self.tcx.span_of_impl(impl_def_id).unwrap(), E0519,
|
self.tcx.span_of_impl(impl_def_id).unwrap(), E0521,
|
||||||
"redundant default implementations of trait `{}`:",
|
"redundant default implementations of trait `{}`:",
|
||||||
trait_ref);
|
trait_ref);
|
||||||
err.span_note(self.tcx.span_of_impl(self.tcx.map.local_def_id(prev_id))
|
err.span_note(self.tcx.span_of_impl(self.tcx.map.local_def_id(prev_id))
|
||||||
|
|
|
@ -3696,6 +3696,6 @@ register_diagnostics! {
|
||||||
// type `{}` was overridden
|
// type `{}` was overridden
|
||||||
E0436, // functional record update requires a struct
|
E0436, // functional record update requires a struct
|
||||||
E0513, // no type for local variable ..
|
E0513, // no type for local variable ..
|
||||||
E0519, // redundant default implementations of trait
|
E0520, // cannot specialize non-default item
|
||||||
E0520 // cannot specialize non-default item
|
E0521 // redundant default implementations of trait
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue