2020-12-15 19:19:54 -06:00
|
|
|
// rustfmt-imports_granularity: Crate
|
2018-04-06 08:32:30 -05:00
|
|
|
|
|
|
|
use a::{a, b, c, d, e, f, g};
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
use a::b;
|
|
|
|
use a::{c, d};
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
use a::b;
|
|
|
|
use a::{c, d, e};
|
|
|
|
|
|
|
|
use foo::{a, b, c};
|
|
|
|
pub use foo::{bar, foobar};
|
|
|
|
|
|
|
|
use a::b::c::{d, xxx, yyy, zzz, *};
|
2019-09-26 20:02:41 -05:00
|
|
|
|
|
|
|
// https://github.com/rust-lang/rustfmt/issues/3808
|
|
|
|
use d::{self};
|
|
|
|
use e::{self as foo};
|
|
|
|
use f::{self, b};
|
|
|
|
use g::{self, a, b};
|
2019-09-26 20:11:11 -05:00
|
|
|
use h::a;
|
|
|
|
use i::a::{self};
|
|
|
|
use j::a::{self};
|
2020-12-15 19:19:54 -06:00
|
|
|
|
|
|
|
use k::{a, b, c, d};
|
|
|
|
use l::{a, b, c, d};
|
2022-06-12 22:03:05 -05:00
|
|
|
|
|
|
|
use b::q::{self /* After b::q::self */};
|
|
|
|
use b::r; // After b::r
|
|
|
|
use b::s::{
|
|
|
|
a,
|
|
|
|
b, // After b::s::b
|
|
|
|
};
|
|
|
|
use b::t::{/* Before b::t::self */ self};
|
|
|
|
use b::t::{
|
|
|
|
// Before b::t::a
|
|
|
|
a,
|
|
|
|
b,
|
|
|
|
};
|
|
|
|
use b::v::{
|
|
|
|
// Before b::v::a
|
|
|
|
a,
|
|
|
|
// Before b::v::b
|
|
|
|
b,
|
|
|
|
};
|
|
|
|
use b::{
|
|
|
|
c, d, e,
|
|
|
|
u::{a, b},
|
|
|
|
};
|
|
|
|
use b::{
|
|
|
|
f::g,
|
|
|
|
h::{i, j}, /* After b::h group */
|
|
|
|
};
|
|
|
|
use b::{
|
|
|
|
/* Before b::l group */ l::{self, m, n::o, p::*},
|
|
|
|
q,
|
|
|
|
};
|