Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #17069 - lnicola:fix-skip-array-dispatch, r=lnicola
minor: Fix `rustc_skip_array_during_method_dispatch` edition check CC #16450
bors 2024-04-15
parent 5dbe3fe · parent f5e4eb2 · commit d80df71
-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 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;
}
}