]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/imports_granularity_one.rs
Rollup merge of #95040 - frank-king:fix/94981, r=Mark-Simulacrum
[rust.git] / src / tools / rustfmt / tests / target / imports_granularity_one.rs
1 // rustfmt-imports_granularity: One
2
3 use {
4     a::{
5         aa::*,
6         ab,
7         ac::{aca, acb},
8     },
9     b,
10 };
11
12 use {
13     a::{self as x, aa, ab},
14     b::ba,
15 };
16
17 use a::{
18     aa::{aaa, *},
19     ab::aba as x,
20 };
21
22 #[cfg(test)]
23 use a::{ab, ac::aca};
24 #[cfg(test)]
25 use b::{
26     ba, bb,
27     bc::bca::{bcaa, bcab},
28 };
29 use {
30     a::{aa, ad::ada},
31     b,
32 };
33
34 pub use {
35     a::{aa, ae},
36     b::{bb, bc::bca},
37 };
38 use {
39     a::{ab, ac, ad},
40     b::ba,
41 };
42
43 use {
44     a::{
45         aa::{aaa, *},
46         ab,
47         ac::{aca, acb},
48     },
49     b::{
50         ba,
51         bb::{self, bba},
52     },
53 };
54
55 use {
56     crate::{a, b::ba},
57     c::ca,
58 };
59
60 use {
61     super::{a, b::ba},
62     c::ca,
63 };
64
65 use {
66     super::b,
67     crate::a,
68     c::{self, ca},
69 };
70
71 use a::{
72     // some comment
73     aa::{aaa, aab},
74     ab,
75     // another comment
76     ac::aca,
77 };
78 use {a::ad::ada, b as x};
79
80 use b::q::{self /* After b::q::self */};
81 use b::r; // After b::r
82 use b::s::{
83     a,
84     b, // After b::s::b
85 };
86 use b::t::{/* Before b::t::self */ self};
87 use b::t::{
88     // Before b::t::a
89     a,
90     b,
91 };
92 use b::v::{
93     // Before b::v::a
94     a,
95     // Before b::v::b
96     b,
97 };
98 use b::{
99     c, d, e,
100     u::{a, b},
101 };
102 use b::{
103     f::g,
104     h::{i, j}, /* After b::h group */
105 };
106 use b::{
107     /* Before b::l group */ l::{self, m, n::o, p::*},
108     q,
109 };