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!
This commit is contained in:
commit
b35af0d04d
2 changed files with 3 additions and 3 deletions
|
@ -952,7 +952,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
||||||
let mut err = rustc_errors::struct_span_err!(
|
let mut err = rustc_errors::struct_span_err!(
|
||||||
self.sess(),
|
self.sess(),
|
||||||
self_ty.span,
|
self_ty.span,
|
||||||
E0783,
|
E0782,
|
||||||
"{}",
|
"{}",
|
||||||
msg,
|
msg,
|
||||||
);
|
);
|
||||||
|
|
|
@ -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
|
--> $DIR/dyn-trait-sugg-2021.rs:10:5
|
||||||
|
|
|
|
||||||
LL | Foo::hi(123);
|
LL | Foo::hi(123);
|
||||||
|
@ -6,4 +6,4 @@ LL | Foo::hi(123);
|
||||||
|
|
||||||
error: aborting due to previous error
|
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`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue