mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
40f4993c67
Fixes 4984
When parsing derive attributes we're only concerned about the traits
and comments listed between the opening and closing parentheses.
Derive attribute spans currently start at the '#'.
Span starts here
|
v
#[derive(...)]
After this update the derive spans start after the opening '('.
Span starts here
|
V
#[derive(...)]
3 lines
40 B
Rust
3 lines
40 B
Rust
#[derive(/*Debug, */Clone)]
|
|
struct Foo;
|