Adjust error code
This commit is contained in:
parent
c4f78ad7bf
commit
dc45d924b6
@ -120,7 +120,7 @@ impl<'cx, 'tcx,'v> intravisit::Visitor<'v> for OverlapChecker<'cx, 'tcx> {
|
||||
if let Some(prev_id) = prev_default_impl {
|
||||
let mut err = struct_span_err!(
|
||||
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 `{}`:",
|
||||
trait_ref);
|
||||
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
|
||||
E0436, // functional record update requires a struct
|
||||
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…
x
Reference in New Issue
Block a user