mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 01:25:54 +00:00
34 lines
588 B
Rust
34 lines
588 B
Rust
|
// rustfmt-reorder_imports: true
|
||
|
|
||
|
use std::cmp::{d, c, b, a};
|
||
|
use std::cmp::{b, e, g, f};
|
||
|
// This comment should stay with `use std::ddd;`
|
||
|
use std::ddd;
|
||
|
use std::ddd::aaa;
|
||
|
use std::ddd::bbb;
|
||
|
use std::str;
|
||
|
|
||
|
mod test {}
|
||
|
|
||
|
use aaa;
|
||
|
use aaa::*;
|
||
|
use aaa::bbb;
|
||
|
|
||
|
mod test {}
|
||
|
// If item names are equal, order by rename
|
||
|
|
||
|
use test::{a as aa, c};
|
||
|
use test::{a as bb, b};
|
||
|
|
||
|
mod test {}
|
||
|
// If item names are equal, order by rename - no rename comes before a rename
|
||
|
|
||
|
use test::{a, c};
|
||
|
use test::{a as bb, b};
|
||
|
|
||
|
mod test {}
|
||
|
// `self` always comes first
|
||
|
|
||
|
use test::{self as bb, b};
|
||
|
use test::{a as aa, c};
|