if-then-panic
suggestion discards comments
#7730
Labels
C-bug
Category: Clippy is not doing the correct thing
L-suggestion
Lint: Improving, adding or fixing lint suggestions
I tried this code:
I expected to see this happen: The suggestion would preserve the comment somehow.
Instead, this happened: The suggestion discarded the comment.
Meta
Rust version (
rustc -Vv
):@rustbot label +L-suggestion
The text was updated successfully, but these errors were encountered: