Skip to content

Commit

Permalink
Auto merge of rust-lang#17069 - lnicola:fix-skip-array-dispatch, r=ln…
Browse files Browse the repository at this point in the history
…icola

minor: Fix `rustc_skip_array_during_method_dispatch` edition check

CC rust-lang#16450
  • Loading branch information
bors committed Apr 15, 2024
2 parents 5dbe3fe + f5e4eb2 commit d80df71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/hir-ty/src/method_resolution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit d80df71

Please sign in to comment.