1 // rustfmt-normalize_comments: true
6 use exceedingly::loooooooooooooooooooooooooooooooooooooooooooooooooooooooong::import::path::{
9 use exceedingly::looooooooooooooooooooooooooooooooooooooooooooooooooooooooooong::import::path::{
12 use syntax::ast::{ItemDefaultImpl, ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic};
16 AnotherItem, // Another Comment
23 use test::{/* A */ self /* B */, Other /* C */};
26 pub use syntax::ast::{Expr, ExprAssign, ExprCall, ExprMethodCall, ExprPath, Expr_};
28 use {Bar /* comment */, /* Pre-comment! */ Foo};
34 pub use syntax::ast::{
35 ItemDefaultImpl, ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic,
39 pub use syntax::ast::{
40 self, ItemDefaultImpl, ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic,
51 use bar::quux as kaas;
58 use foo::{self as bar, baz};
59 use foo::{baz, qux as bar};
61 // With absolute paths
72 // spaces used to cause glob imports to disappear (#1356)
74 use foo::issue_1356::*;
76 // We shouldn't remove imports which have attributes attached (#1858)
85 foo::{a, b, cxxxxxxxxxxxxx, yyyyyyyyyyyyyy, zzzzzzzzzzzzzzzz},
86 qux, xxxxxxxxxxx, yyyyyyyyyyyyy, zzzzzzzzzzzzzzzz,
93 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy,
94 zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz,
102 api::{Api, ApiError},
103 blockchain::{self, BlockProof, Blockchain, Transaction, TransactionSet},
104 crypto::{Hash, PublicKey},
106 node::TransactionSend,
107 storage::{ListProof, MapProof},
110 // nested imports with a single sub-tree.
113 use a::b::c::{xxx, yyy, zzz};
116 /// This line is not affected.
117 // This line is deleted.
122 use imports_with_attr;
125 use std::f64::consts::{E, PI, SQRT_2};