Change edit distance to not suggest on_move and on_const against each other

This commit is contained in:
mejrs
2026-04-12 01:47:07 +02:00
parent d69403abfc
commit 55cd47658c
+1 -1
View File
@@ -735,7 +735,7 @@ fn smart_resolve_macro_path(
stable.is_none_or(|f| self.tcx.features().enabled(f)).then_some(*sym)
})
.collect::<Vec<_>>();
let typo = find_best_match_for_name(&candidates, attribute.ident.name, Some(5))
let typo = find_best_match_for_name(&candidates, attribute.ident.name, None)
.map(|typo_name| errors::UnknownDiagnosticAttributeTypoSugg { span, typo_name });
self.tcx.sess.psess.buffer_lint(