diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2023-02-19 04:17:58 +0000 |
|---|---|---|
| committer | Jacob Pratt <jacob@jhpratt.dev> | 2023-02-19 04:17:58 +0000 |
| commit | 20282c1b20bb1ce196a3addc9f681cf6cf81feb9 (patch) | |
| tree | 3e6ac1a9f8b428258f951264db49743a35235a1d /compiler/rustc_parse/src/parser | |
| parent | 378c4ab9ab1f75c4375425077c46cceb556fbc86 (diff) | |
| download | rust-20282c1b20bb1ce196a3addc9f681cf6cf81feb9.tar.gz rust-20282c1b20bb1ce196a3addc9f681cf6cf81feb9.zip | |
Reduce limit on `macro_rules!` diagnostic
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index 3e3399d05c9..f164bb330f3 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -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( |
