rust/tests/target/imports_granularity_one.rs
Yusuke Tanaka ca9b050bbf Implement One option for imports_granularity (#4669)
This option merges all imports into a single `use` statement as long as
they have the same visibility.
2021-08-31 18:33:06 -05:00

80 lines
840 B
Rust

// rustfmt-imports_granularity: One
use {
a::{
aa::*,
ab,
ac::{aca, acb},
},
b,
};
use {
a::{self as x, aa, ab},
b::ba,
};
use a::{
aa::{aaa, *},
ab::aba as x,
};
#[cfg(test)]
use a::{ab, ac::aca};
#[cfg(test)]
use b::{
ba, bb,
bc::bca::{bcaa, bcab},
};
use {
a::{aa, ad::ada},
b,
};
pub use {
a::{aa, ae},
b::{bb, bc::bca},
};
use {
a::{ab, ac, ad},
b::ba,
};
use {
a::{
aa::{aaa, *},
ab,
ac::{aca, acb},
},
b::{
ba,
bb::{self, bba},
},
};
use {
crate::{a, b::ba},
c::ca,
};
use {
super::{a, b::ba},
c::ca,
};
use {
super::b,
crate::a,
c::{self, ca},
};
use {
a::{
aa::{aaa, aab},
ab,
ac::aca,
ad::ada,
},
b as x,
};