about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
diff options
context:
space:
mode:
authorPhilipp Hofer <philipp@hofer.link>2024-12-12 15:42:21 +0100
committerPhilipp Hofer <philipp@hofer.link>2024-12-12 15:42:21 +0100
commitec6e0983b8db5c96169a4aee4a06a87f5074de84 (patch)
treeb1f93af08a5c64c3f4ac6616d924b16a2fa960aa /src/tools/rust-analyzer
parent648a00936b56a3fa08993018c00248adaa66da42 (diff)
downloadrust-ec6e0983b8db5c96169a4aee4a06a87f5074de84.tar.gz
rust-ec6e0983b8db5c96169a4aee4a06a87f5074de84.zip
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.
Diffstat (limited to 'src/tools/rust-analyzer')
-rw-r--r--src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/invalid_cast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/invalid_cast.rs b/src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/invalid_cast.rs
index 4bd29b8c79b..c7cdcf49820 100644
--- a/src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/invalid_cast.rs
+++ b/src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/invalid_cast.rs
@@ -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
             ),