Auto merge of #17069 - lnicola:fix-skip-array-dispatch, r=lnicola

minor: Fix `rustc_skip_array_during_method_dispatch` edition check

CC #16450
This commit is contained in:
bors 2024-04-15 05:56:22 +00:00
commit d80df712e7

View file

@ -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 // FIXME: this should really be using the edition of the method name's span, in case it
// comes from a macro // comes from a macro
if db.crate_graph()[krate].edition < Edition::CURRENT { if db.crate_graph()[krate].edition < Edition::Edition2021 {
continue; continue;
} }
} }