mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
Fix typo in error message for invalid casting
Corrected the spelling of "defererence" to "dereference" in the error message that informs users about invalid casting requirements.
This commit is contained in:
parent
acd469681f
commit
04ac6f8405
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