Skip to content

Commit 517db79

Browse files
committed
Renumber error to fix tidy
1 parent 22f0940 commit 517db79

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustc_typeck/check/compare_method.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ fn compare_synthetic_generics<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
739739
let trait_span = tcx.hir.span(trait_node_id);
740740
let mut err = struct_span_err!(tcx.sess,
741741
impl_span,
742-
E0642,
742+
E0643,
743743
"method `{}` has incompatible signature for trait",
744744
trait_m.name);
745745
err.span_label(trait_span, "annotation in trait");

src/librustc_typeck/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4625,11 +4625,11 @@ It is recommended that you look for a `new` function or equivalent in the
46254625
crate's documentation.
46264626
"##,
46274627

4628-
E0642: r##"
4628+
E0643: r##"
46294629
This error indicates that there is a mismatch between generic parameters and
46304630
impl Trait parameters in a trait declaration versus its impl.
46314631
4632-
```compile_fail,E0642
4632+
```compile_fail,E0643
46334633
#![feature(universal_impl_trait)]
46344634
trait Foo {
46354635
fn foo(&self, _: &impl Iterator);

0 commit comments

Comments
 (0)