Reduce limit on macro_rules!
diagnostic
This commit is contained in:
parent
378c4ab9ab
commit
20282c1b20
1 changed files with 1 additions and 1 deletions
|
@ -459,7 +459,7 @@ impl<'a> Parser<'a> {
|
|||
// Maybe the user misspelled `macro_rules` (issue #91227)
|
||||
if self.token.is_ident()
|
||||
&& path.segments.len() == 1
|
||||
&& edit_distance("macro_rules", &path.segments[0].ident.to_string(), 3)
|
||||
&& edit_distance("macro_rules", &path.segments[0].ident.to_string(), 2)
|
||||
.is_some()
|
||||
{
|
||||
err.span_suggestion(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue