mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-09 05:36:17 +00:00

A new `HasTokens` trait is introduced, which is used to move logic from the callers of `collect_tokens` into the body of `collect_tokens`. In addition to reducing duplication, this paves the way for PR #80689, which needs to perform additional logic during token collection.