mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
a560810a69
The current code is this: ``` self.capture_state.replace_ranges.push((start_pos..end_pos, Some(target))); self.capture_state.replace_ranges.extend(inner_attr_replace_ranges); ``` What's not obvious is that every range in `inner_attr_replace_ranges` must be a strict sub-range of `start_pos..end_pos`. Which means, in `LazyAttrTokenStreamImpl::to_attr_token_stream`, they will be done first, and then the `start_pos..end_pos` replacement will just overwrite them. So they aren't needed. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |