From f5e4eb2ef992118dc5260146676e8c047c24e432 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 --- crates/hir-ty/src/method_resolution.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/hir-ty/src/method_resolution.rs b/crates/hir-ty/src/method_resolution.rs index 3d1885081f..cd72349471 100644 --- a/crates/hir-ty/src/method_resolution.rs +++ b/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; } }