Skip to content

Commit f5e4eb2

Browse files
committed
Fix rustc_skip_array_during_method_dispatch edition check
1 parent 5dbe3fe commit f5e4eb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir-ty/src/method_resolution.rs

Lines changed: 1 addition & 1 deletion
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)