Skip to content

Commit

Permalink
Merge pull request rust-lang#18671 from p-hofer/master
Browse files Browse the repository at this point in the history
Fix typo in error message for invalid casting
  • Loading branch information
Veykril authored Dec 12, 2024
2 parents acd4696 + 04ac6f8 commit 0ae3813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ide-diagnostics/src/handlers/invalid_cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
Expand Down

0 comments on commit 0ae3813

Please sign in to comment.