diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-06-15 11:50:27 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-06-15 11:50:27 -0400 |
| commit | 74599cd362076816755f087876949c85d8ed92fc (patch) | |
| tree | e539ae50e755d4ab976af1dadbe20dd7dc77bab4 /src/librustc_parse/parser | |
| parent | d4ecf31efc2309fb6df8c2a8af9aaf8176ab1c8d (diff) | |
Always capture tokens for `macro_rules!` arguments
Diffstat (limited to 'src/librustc_parse/parser')
| -rw-r--r-- | src/librustc_parse/parser/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/mod.rs b/src/librustc_parse/parser/mod.rs index 47ae92c48bd..7811d5fb741 100644 --- a/src/librustc_parse/parser/mod.rs +++ b/src/librustc_parse/parser/mod.rs @@ -1151,7 +1151,7 @@ impl<'a> Parser<'a> { /// This restriction shouldn't be an issue in practice, /// since this function is used to record the tokens for /// a parsed AST item, which always has matching delimiters. - fn collect_tokens<R>( + pub fn collect_tokens<R>( &mut self, f: impl FnOnce(&mut Self) -> PResult<'a, R>, ) -> PResult<'a, (R, TokenStream)> { |
