Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract into function remove comments in the first of blocks #14371

Closed
HKalbasi opened this issue Mar 17, 2023 · 1 comment · Fixed by #16333
Closed

Extract into function remove comments in the first of blocks #14371

HKalbasi opened this issue Mar 17, 2023 · 1 comment · Fixed by #16333
Assignees
Labels
A-assists C-bug Category: bug

Comments

@HKalbasi
Copy link
Member

HKalbasi commented Mar 17, 2023

fn x() {
    let c = /*start*/{
        // the comment
        let a = 2;
        let b = 5;
        a + b
    }/*end*/;
}

Selecting the range and using the assist will remove // the comment from the result.

@HKalbasi HKalbasi added the C-bug Category: bug label Mar 17, 2023
@roife
Copy link
Contributor

roife commented Jan 10, 2024

@rustbot claim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-assists C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants