mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
Merge pull request #18671 from p-hofer/master
Fix typo in error message for invalid casting
This commit is contained in:
commit
0ae381327b
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ pub(crate) fn invalid_cast(ctx: &DiagnosticsContext<'_>, d: &hir::InvalidCast) -
|
|||
DiagnosticCode::RustcHardError("E0606"),
|
||||
format_ty!(
|
||||
ctx,
|
||||
"casting `{}` as `{}` is invalid: needs defererence or removal of unneeded borrow",
|
||||
"casting `{}` as `{}` is invalid: needs dereference or removal of unneeded borrow",
|
||||
d.expr_ty,
|
||||
d.cast_ty
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue