Skip to content

Commit

Permalink
Reduce limit on macro_rules! diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Feb 19, 2023
1 parent 378c4ab commit 20282c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_parse/src/parser/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 20282c1

Please sign in to comment.