Skip to content

Raw identifier ordering is different in mod and use #4254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kazatsuyu opened this issue Jun 13, 2020 · 1 comment · Fixed by #4255
Closed

Raw identifier ordering is different in mod and use #4254

kazatsuyu opened this issue Jun 13, 2020 · 1 comment · Fixed by #4255

Comments

@kazatsuyu
Copy link

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)

@ayazhafiz
Copy link
Contributor

skip-children and unstable-features were removed in #4006, looks like this is fixed on master. I'll add a test case for regression

ayazhafiz added a commit to ayazhafiz/rustfmt that referenced this issue Jun 13, 2020
calebcartwright pushed a commit that referenced this issue Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants