Skip to content

Raw identifier ordering is different in mod and use #4254

@kazatsuyu

Description

@kazatsuyu

I made the following file:

// example.rs
mod d;
mod f;
mod s;
mod r#if;
mod r#else;

use d::*;
use f::*;
use s::*;
use r#if::*;
use r#else::*;

And I ran the following command:

rustfmt --unstable-features --skip-children --emit stdout example.rs

I got the following output.

// example.rs
mod d;
mod r#else;
mod f;
mod r#if;
mod s;

use d::*;
use f::*;
use r#else::*;
use r#if::*;
use s::*;

rustfmt version: 1.4.15-nightly (aedff61 2020-05-19)

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