about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristopher Vittal <christopher.vittal@gmail.com>2017-11-14 20:56:42 -0500
committerChristopher Vittal <christopher.vittal@gmail.com>2017-11-15 15:46:01 -0500
commit517db79c1f0c7d68f67045b19e19cbb369d2b7b8 (patch)
treef23c1e197fc10e32597b81d7d07f885633ba7875
parent22f0940f2d7076773966de425f5dfc3afb012164 (diff)
downloadrust-517db79c1f0c7d68f67045b19e19cbb369d2b7b8.tar.gz
rust-517db79c1f0c7d68f67045b19e19cbb369d2b7b8.zip
Renumber error to fix tidy
-rw-r--r--src/librustc_typeck/check/compare_method.rs2
-rw-r--r--src/librustc_typeck/diagnostics.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_typeck/check/compare_method.rs b/src/librustc_typeck/check/compare_method.rs
index 04fa99540a1..139449e5ab0 100644
--- a/src/librustc_typeck/check/compare_method.rs
+++ b/src/librustc_typeck/check/compare_method.rs
@@ -739,7 +739,7 @@ fn compare_synthetic_generics<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
             let trait_span = tcx.hir.span(trait_node_id);
             let mut err = struct_span_err!(tcx.sess,
                                            impl_span,
-                                           E0642,
+                                           E0643,
                                            "method `{}` has incompatible signature for trait",
                                            trait_m.name);
             err.span_label(trait_span, "annotation in trait");
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs
index 51ad668550e..328b7f9fdef 100644
--- a/src/librustc_typeck/diagnostics.rs
+++ b/src/librustc_typeck/diagnostics.rs
@@ -4625,11 +4625,11 @@ It is recommended that you look for a `new` function or equivalent in the
 crate's documentation.
 "##,
 
-E0642: r##"
+E0643: r##"
 This error indicates that there is a mismatch between generic parameters and
 impl Trait parameters in a trait declaration versus its impl.
 
-```compile_fail,E0642
+```compile_fail,E0643
 #![feature(universal_impl_trait)]
 trait Foo {
     fn foo(&self, _: &impl Iterator);