Skip to content

Commit 771e0ae

Browse files
committed
Auto merge of rust-lang#17069 - lnicola:fix-skip-array-dispatch, r=lnicola
minor: Fix `rustc_skip_array_during_method_dispatch` edition check CC rust-lang#16450
2 parents bfb44da + a1c020a commit 771e0ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/crates/hir-ty/src/method_resolution.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ fn iterate_trait_method_candidates(
11571157
{
11581158
// FIXME: this should really be using the edition of the method name's span, in case it
11591159
// comes from a macro
1160-
if db.crate_graph()[krate].edition < Edition::CURRENT {
1160+
if db.crate_graph()[krate].edition < Edition::Edition2021 {
11611161
continue;
11621162
}
11631163
}

0 commit comments

Comments
 (0)