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

Unmerge use assist ignores attributes #19441

Open
svix-jplatte opened this issue Mar 24, 2025 · 0 comments · May be fixed by #19465
Open

Unmerge use assist ignores attributes #19441

svix-jplatte opened this issue Mar 24, 2025 · 0 comments · May be fixed by #19465
Labels
A-assists C-bug Category: bug

Comments

@svix-jplatte
Copy link

svix-jplatte commented Mar 24, 2025

When using the 'unmerge use' assist on part of a use statement that has attributes attached, the new extracted use statement should use the same attributes, but it doesn't.

rust-analyzer version: 0.4.2354-standalone (dd2354c 2025-03-24)

rustc version: 1.87.0-nightly (f4a216d28 2025-03-02)

editor or extension: VSCode (arch build, RA 0.4.2354)

code snippet to reproduce:

#[cfg(any())]
#[allow(deprecated)]
use foo::{Bar, Baz}; // unmerge use of Baz
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.

2 participants