diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-11-13 22:35:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-13 22:35:03 +0100 |
| commit | b35af0d04ddbfbbb5b616f1dac1bdad5a6e00cd6 (patch) | |
| tree | 1861a70e893f0cd6c7c0e030d19bcf72207bcb52 | |
| parent | d212d902ae8d29e31b32641096f7848a4bb35522 (diff) | |
| parent | fc9624c6738c57f32e6811ed93b3085415e61ccd (diff) | |
Rollup merge of #90771 - asterycs:fix/trait-object-error-code, r=michaelwoerister
Fix trait object error code closes #90768 I `grep`:d and changed the occurrences that seemed relevant. Please let me know what you think and if anything is missing!
| -rw-r--r-- | compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/editions/dyn-trait-sugg-2021.stderr | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs b/compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs index 93b2a595259..aae59eee991 100644 --- a/compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs +++ b/compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs @@ -952,7 +952,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { let mut err = rustc_errors::struct_span_err!( self.sess(), self_ty.span, - E0783, + E0782, "{}", msg, ); diff --git a/src/test/ui/editions/dyn-trait-sugg-2021.stderr b/src/test/ui/editions/dyn-trait-sugg-2021.stderr index f6e9fa96a15..a7119b073ab 100644 --- a/src/test/ui/editions/dyn-trait-sugg-2021.stderr +++ b/src/test/ui/editions/dyn-trait-sugg-2021.stderr @@ -1,4 +1,4 @@ -error[E0783]: trait objects without an explicit `dyn` are deprecated +error[E0782]: trait objects without an explicit `dyn` are deprecated --> $DIR/dyn-trait-sugg-2021.rs:10:5 | LL | Foo::hi(123); @@ -6,4 +6,4 @@ LL | Foo::hi(123); error: aborting due to previous error -For more information about this error, try `rustc --explain E0783`. +For more information about this error, try `rustc --explain E0782`. |
