Closed dtolnay closed 1 month ago
The Literal case is possible to optimize since https://github.com/dtolnay/syn/commit/66cb0c4381b0faaf1cf00f486f079338366461d5 (Cursor::lifetime), and the Group case since #1371 (Cursor::any_group). The original peek implementations pre-date those additions to the Cursor API.
Literal
Cursor::lifetime
Group
Cursor::any_group
Cursor
The
Literal
case is possible to optimize since https://github.com/dtolnay/syn/commit/66cb0c4381b0faaf1cf00f486f079338366461d5 (Cursor::lifetime
), and theGroup
case since #1371 (Cursor::any_group
). The original peek implementations pre-date those additions to theCursor
API.