rust/tests/ui/proc-macro
Nicholas Nethercote ac26b883bf Improve spans on evaluated cfg_attrs.
When converting something like `#![cfg_attr(cond, attr)]` into
`#![attr]`, we currently duplicate the `#` token and the `!` token. But
weirdly, there is also this comment:

// We don't really have a good span to use for the synthesized `[]`
// in `#[attr]`, so just use the span of the `#` token.

Maybe that comment used to be true? But now it is false: we can
duplicate the existing delimiters (and their spans and spacing), much
like we do for the `#` and `!`.

This commit does that, thus removing the incorrect comment, and
improving the spans on `Group`s in a few proc-macro tests.
2024-07-24 21:03:52 +10:00
..
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-04-04 02:14:57 +01:00
2024-04-04 02:14:57 +01:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-02-11 02:43:44 +09:00
2024-01-13 12:46:58 -05:00
2024-05-17 18:33:37 -03:00