From a1c020acff7b0425b08bcb1a42e5585e185b8e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 15 Apr 2024 08:54:07 +0300 Subject: [PATCH] Fix rustc_skip_array_during_method_dispatch edition check --- src/tools/rust-analyzer/crates/hir-ty/src/method_resolution.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/rust-analyzer/crates/hir-ty/src/method_resolution.rs b/src/tools/rust-analyzer/crates/hir-ty/src/method_resolution.rs index 3d1885081f915..cd723494713b3 100644 --- a/src/tools/rust-analyzer/crates/hir-ty/src/method_resolution.rs +++ b/src/tools/rust-analyzer/crates/hir-ty/src/method_resolution.rs @@ -1157,7 +1157,7 @@ fn iterate_trait_method_candidates( { // FIXME: this should really be using the edition of the method name's span, in case it // comes from a macro - if db.crate_graph()[krate].edition < Edition::CURRENT { + if db.crate_graph()[krate].edition < Edition::Edition2021 { continue; } }