mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 22:36:43 +00:00
Make unused_parens's suggestion considering expr's attributes.
For the expr with attributes,
like `let _ = (#[inline] || println!("Hello!"));`,
the suggestion's span should contains the attributes, or the suggestion will remove them.
fixes #129833