1 // rustfmt-normalize_comments: true
6 use rustc_ast::ast::{ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic, ItemDefaultImpl};
7 use exceedingly::looooooooooooooooooooooooooooooooooooooooooooooooooooooooooong::import::path::{ItemA, ItemB};
8 use exceedingly::loooooooooooooooooooooooooooooooooooooooooooooooooooooooong::import::path::{ItemA, ItemB};
12 SomeItem /* Comment */, /* Another item */ AnotherItem /* Another Comment */, // Last Item
16 use test::{ Other /* C */ , /* A */ self /* B */ };
18 use rustc_ast::{self};
19 use {/* Pre-comment! */
20 Foo, Bar /* comment */};
22 pub use rustc_ast::ast::{Expr_, Expr, ExprAssign, ExprCall, ExprMethodCall, ExprPath};
24 use rustc_ast::some::{};
31 pub use rustc_ast::ast::{
41 pub use rustc_ast::ast::{ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic, self, ItemDefaultImpl};
51 use foo::bar::baz as baz ;
52 use bar::quux as kaas;
56 use foo::{self as bar, baz};
57 use foo::{self as bar};
58 use foo::{qux as bar};
59 use foo::{baz, qux as bar};
61 // With absolute paths
64 use ::foo::{Bar, Baz};
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)
81 use foo::{a, bar::{baz, qux, xxxxxxxxxxx, yyyyyyyyyyyyy, zzzzzzzzzzzzzzzz, foo::{a, b, cxxxxxxxxxxxxx, yyyyyyyyyyyyyy, zzzzzzzzzzzzzzzz}}, b, boo, c,};
83 use fooo::{baar::{foobar::{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz}}, z, bar, bar::*, x, y};
85 use exonum::{api::{Api, ApiError}, blockchain::{self, BlockProof, Blockchain, Transaction, TransactionSet}, crypto::{Hash, PublicKey}, helpers::Height, node::TransactionSend, storage::{ListProof, MapProof}};
87 // nested imports with a single sub-tree.
91 use a::{b::{c::{xxx, yyy, zzz}}};
94 /// This line is not affected.
95 // This line is deleted.
100 use imports_with_attr;
103 use std::f64::consts::{SQRT_2, E, PI};
107 use std::fmt::{self, {Display, Formatter}};