Skip to content

Unmerge use assist ignores attributes #19441

Closed
@svix-jplatte

Description

@svix-jplatte

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions