diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-04-04 16:23:43 +0300 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-04-17 15:28:43 -0400 |
| commit | 2708486f8947cea7a4cc86a8e512f8265fe85c65 (patch) | |
| tree | 86527f2942f7c24cbcd3239f0b63e51512b1c590 /src/librustc_expand/mbe/macro_parser.rs | |
| parent | c1df9f0a835733e979a0adac498be204cc30b850 (diff) | |
| download | rust-2708486f8947cea7a4cc86a8e512f8265fe85c65.tar.gz rust-2708486f8947cea7a4cc86a8e512f8265fe85c65.zip | |
macro_rules: `NtLifetime` cannot start with an identifier
Diffstat (limited to 'src/librustc_expand/mbe/macro_parser.rs')
| -rw-r--r-- | src/librustc_expand/mbe/macro_parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_expand/mbe/macro_parser.rs b/src/librustc_expand/mbe/macro_parser.rs index a035461acc6..5f75b99d91b 100644 --- a/src/librustc_expand/mbe/macro_parser.rs +++ b/src/librustc_expand/mbe/macro_parser.rs @@ -762,7 +762,7 @@ fn may_begin_with(token: &Token, name: Name) -> bool { /// Checks whether the non-terminal may contain a single (non-keyword) identifier. fn may_be_ident(nt: &token::Nonterminal) -> bool { match *nt { - token::NtItem(_) | token::NtBlock(_) | token::NtVis(_) => false, + token::NtItem(_) | token::NtBlock(_) | token::NtVis(_) | token::NtLifetime(_) => false, _ => true, } } |
