Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ec6e098

Browse files
committed
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.
1 parent 648a009 commit ec6e098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/invalid_cast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub(crate) fn invalid_cast(ctx: &DiagnosticsContext<'_>, d: &hir::InvalidCast) -
5959
DiagnosticCode::RustcHardError("E0606"),
6060
format_ty!(
6161
ctx,
62-
"casting `{}` as `{}` is invalid: needs defererence or removal of unneeded borrow",
62+
"casting `{}` as `{}` is invalid: needs dereference or removal of unneeded borrow",
6363
d.expr_ty,
6464
d.cast_ty
6565
),

0 commit comments

Comments
 (0)