From 8277c0336e26c2415b3f8f05889386377ce14386 Mon Sep 17 00:00:00 2001 From: Chayim Refael Friedman Date: Mon, 16 Dec 2024 19:58:29 +0200 Subject: [PATCH] Fix a panic with a diagnostics fix when a keyword is used as a field I found it easiest to fix in the quickfix code, and not deeper (e.g. body lowering). --- .../src/handlers/unresolved_field.rs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/crates/ide-diagnostics/src/handlers/unresolved_field.rs b/crates/ide-diagnostics/src/handlers/unresolved_field.rs index 656bedff1a..4accd181ca 100644 --- a/crates/ide-diagnostics/src/handlers/unresolved_field.rs +++ b/crates/ide-diagnostics/src/handlers/unresolved_field.rs @@ -90,7 +90,9 @@ fn field_fix(ctx: &DiagnosticsContext<'_>, d: &hir::UnresolvedField) -> Option