Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Attributes applied to deleted items should also be deleted. #147

Closed
@jrobsonchase

Description

@jrobsonchase

For example, if I have

#[cfg(unix)]
extern crate nix;

mod foo;

and then run cargo fix --edition-idioms, currently only the extern crate nix; line gets deleted, which makes the #[cfg(unix)] attribute apply to mod foo;, which is not what was intended.

I'm currently using cargo-fix v0.4.1 from crates.io.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions