]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #72393 - Aaron1011:feature/rewrite-collect-tokens, r=petrochenkov
authorRalf Jung <post@ralfj.de>
Sun, 24 May 2020 10:17:11 +0000 (12:17 +0200)
committerGitHub <noreply@github.com>
Sun, 24 May 2020 10:17:11 +0000 (12:17 +0200)
Rewrite `Parser::collect_tokens`

The previous implementation did not work when called on an opening
delimiter, or when called re-entrantly from the same `TokenCursor` stack
depth.

I'm not sure how to test this apart from https://github.com/rust-lang/rust/pull/72287


Trivial merge