Skip to content

Commit 20282c1

Browse files
committed
Reduce limit on macro_rules! diagnostic
1 parent 378c4ab commit 20282c1

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+1
-1
lines changed

compiler/rustc_parse/src/parser/item.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ impl<'a> Parser<'a> {
459459
// Maybe the user misspelled `macro_rules` (issue #91227)
460460
if self.token.is_ident()
461461
&& path.segments.len() == 1
462-
&& edit_distance("macro_rules", &path.segments[0].ident.to_string(), 3)
462+
&& edit_distance("macro_rules", &path.segments[0].ident.to_string(), 2)
463463
.is_some()
464464
{
465465
err.span_suggestion(

0 commit comments

Comments
 (0)