Skip to content

Commit 55cd476

Browse files
committed
Change edit distance to not suggest on_move and on_const against each other
1 parent d69403a commit 55cd476

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/rustc_resolve/src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
735735
stable.is_none_or(|f| self.tcx.features().enabled(f)).then_some(*sym)
736736
})
737737
.collect::<Vec<_>>();
738-
let typo = find_best_match_for_name(&candidates, attribute.ident.name, Some(5))
738+
let typo = find_best_match_for_name(&candidates, attribute.ident.name, None)
739739
.map(|typo_name| errors::UnknownDiagnosticAttributeTypoSugg { span, typo_name });
740740

741741
self.tcx.sess.psess.buffer_lint(

0 commit comments

Comments
 (0)