<!-- Troubleshooting guide: https://rust-analyzer.github.io/manual.html#troubleshooting Forum for questions: https://users.rust-lang.org/c/ide/14 Before submitting, please make sure that you're not running into one of these known issues: 1. on-the-fly diagnostics are mostly unimplemented (`cargo check` diagnostics will be shown when saving a file): #3107 Otherwise please try to provide information which will help us to fix the issue faster. Minimal reproducible examples with few dependencies are especially lovely <3. --> **rust-analyzer version**: 0.4.2068-standalone **rustc version**: rustc 1.80.1 (3f5fd8dd4 2024-08-06) **editor or extension**: code oss **relevant settings**: None **code snippet to reproduce**: ```rust let mut i = 0; while i < 5 { // comment 1 dbg!(i); // comment 2 i += 1; // comment 3 } ``` Converting this `while` loop to a `loop` loop using the assist removes all of the comments: ```rust let mut i = 0; loop { if i >= 5 { break; } dbg!(i); i += 1; } ```