mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
9d33a8fe51
Currently the second element is a `Vec<(FlatToken, Spacing)>`. But the vector always has zero or one elements, and the `FlatToken` is always `FlatToken::AttrTarget` (which contains an `AttributesData`), and the spacing is always `Alone`. So we can simplify it to `Option<AttributesData>`. An assertion in `to_attr_token_stream` can can also be removed, because `new_tokens.len()` was always 0 or 1, which means than `range.len()` is always greater than or equal to it, because `range.is_empty()` is always false (as per the earlier assertion). |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |