Suggestion of useless_attribute
breaks rustfix
#5021
Labels
good-first-issue
These issues are a good way to get started with Clippy
L-suggestion
Lint: Improving, adding or fixing lint suggestions
Minimal reproducer:
produces
The suggestion in itself is correct. This trips rustfix though, since rustfix removes indentations of suggestions and then slices the text pointed at from the suggestion. Relevant rustfix code can be found here: https://github.com/rust-lang/rustfix/blob/715eff0b15b6ffc5adcb016b6713132159681723/src/lib.rs#L95-L113
Playground
The text was updated successfully, but these errors were encountered: