Skip to content

Comments on use statements incorrectly rearranged when use statements are rearranged #3720

Open
@bddap

Description

@bddap

Input:

use c; // use c;
use b; // use b;
use a; // use a;

Expected:

use a; // use a;
use b; // use b;
use c; // use c;

Got:

use a;
use b; // use b;
use c; // use c; // use a;
rustc 1.36.0 (a53f9df32 2019-07-03)
binary: rustc
commit-hash: a53f9df32fbb0b5f4382caaad8f1a46f36ea887c
commit-date: 2019-07-03
host: x86_64-apple-darwin
release: 1.36.0
LLVM version: 8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-commentsa-imports`use` syntaxbugPanic, non-idempotency, invalid code, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions