-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
A-assistsC-bugCategory: bugCategory: bugE-has-instructionsIssue has some instructions and pointers to code to get startedIssue has some instructions and pointers to code to get startedS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Description
Removing all dbg!() macros in the selection was implemented in #13629 , but it does not remove nested dbg!() .
Minimal repro:
fn main() {
let x = dbg!(dbg!(0) + 1) + 2; // Select this line and run the code action
}Expected result:
fn main() {
let x = (0 + 1) + 2;
}Actual result:
fn main() {
let x = (dbg!(0) + 1) + 2;
}Running the action once more yields the desired result.
rust-analyzer version [coc.nvim] rust-analyzer 0.3.1348-standalone
rustc version: (eg. output of rustc -V)
rustc 1.65.0 (897e37553 2022-11-02)
relevant settings: Nothing shuold be relevant.
Metadata
Metadata
Assignees
Labels
A-assistsC-bugCategory: bugCategory: bugE-has-instructionsIssue has some instructions and pointers to code to get startedIssue has some instructions and pointers to code to get startedS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now