Skip to content

Unsorted extern-crate/use/mod/… statements #881

Closed
@regexident

Description

@regexident

In addition (or as alternative) to https://github.com/Manishearth/rust-clippy/issues/880 I'd love to have a lint that warns on mal-sorted use statements inside a group.

So that this would trigger a warning:

use lorem::ipsum::{dolor, sit, amet};
use consectetur;
use adipiscing::elit;

while this wouldn't:

use adipiscing::elit;
use consectetur;
use lorem::ipsum::{amet, dolor, sit};

This is would probably be a candidate for pedantic.

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