diff options
| author | Philipp Hofer <philipp@hofer.link> | 2024-12-12 15:42:21 +0100 |
|---|---|---|
| committer | Philipp Hofer <philipp@hofer.link> | 2024-12-12 15:42:21 +0100 |
| commit | ec6e0983b8db5c96169a4aee4a06a87f5074de84 (patch) | |
| tree | b1f93af08a5c64c3f4ac6616d924b16a2fa960aa /src/tools/rust-analyzer | |
| parent | 648a00936b56a3fa08993018c00248adaa66da42 (diff) | |
| download | rust-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.rs | 2 |
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 ), |
