1
Fork 0
rust/compiler/rustc_parse/src
Jonas Schievink 3e8ae5dcba
Rollup merge of #81472 - Aaron1011:fix/revert-cursor-clone, r=petrochenkov
Clone entire `TokenCursor` when collecting tokens

Reverts PR #80830
Fixes taiki-e/pin-project#312

We can have an arbitrary number of `None`-delimited group frames pushed
on the stack due to proc-macro invocations, which can legally be exited.
Attempting to account for this would add a lot of complexity for a tiny
performance gain, so let's just use the original strategy.
2021-01-31 01:47:34 +01:00
..
lexer Fix typo in doc comment for report_too_many_hashes 2020-11-22 07:02:58 -03:00
parser Rollup merge of #81472 - Aaron1011:fix/revert-cursor-clone, r=petrochenkov 2021-01-31 01:47:34 +01:00
lib.rs Refactor token collection to capture trailing token immediately 2021-01-22 00:33:03 -05:00
validate_attr.rs ast: Remove some indirection layers from values in key-value attributes 2021-01-09 21:50:39 +03:00