We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bfb44da + a1c020a commit 771e0aeCopy full SHA for 771e0ae
src/tools/rust-analyzer/crates/hir-ty/src/method_resolution.rs
@@ -1157,7 +1157,7 @@ fn iterate_trait_method_candidates(
1157
{
1158
// FIXME: this should really be using the edition of the method name's span, in case it
1159
// comes from a macro
1160
- if db.crate_graph()[krate].edition < Edition::CURRENT {
+ if db.crate_graph()[krate].edition < Edition::Edition2021 {
1161
continue;
1162
}
1163
0 commit comments