about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurențiu Nicola <lnicola@dend.ro>2024-04-15 08:54:07 +0300
committerLaurențiu Nicola <lnicola@dend.ro>2024-04-15 08:54:07 +0300
commitf5e4eb2ef992118dc5260146676e8c047c24e432 (patch)
tree20d8a4a4ad679d1f78437eb61a5d673a7ac5f5e2
parent5dbe3fe75c584aee2063ef7877a639fe3382461e (diff)
downloadrust-f5e4eb2ef992118dc5260146676e8c047c24e432.tar.gz
rust-f5e4eb2ef992118dc5260146676e8c047c24e432.zip
Fix rustc_skip_array_during_method_dispatch edition check
-rw-r--r--crates/hir-ty/src/method_resolution.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-ty/src/method_resolution.rs b/crates/hir-ty/src/method_resolution.rs
index 3d1885081f9..cd723494713 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;
             }
         }