mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 03:57:37 +00:00
![]() The spacing computation is done in two parts. In the first part `next_token` and `bump` use `Spacing::Alone` to mean "preceded by whitespace" and `Spacing::Joint` to mean the opposite. In the second part `parse_token_tree_other` then adjusts the `spacing` value to mean the usual thing (i.e. "is the following token joinable punctuation?"). This shift in meaning is very confusing and it took me some time to understand what was going on. This commit changes the first part to use a bool, and adds some comments, which makes things much clearer. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |