mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 03:37:26 +03:00
Change edit distance to not suggest on_move and on_const against each other
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user