Skip to content

Commit b721d8a

Browse files
committed
reorder crate imports a bit
1 parent bdca899 commit b721d8a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@
4949
// Needed for rustdoc from bootstrap (with `-Znormalize-docs`).
5050
#![recursion_limit = "256"]
5151

52-
extern crate either; // the one from rustc
52+
// Some "regular" crates we want to share with rustc
53+
extern crate either;
54+
#[macro_use]
55+
extern crate tracing;
5356

5457
extern crate rustc_apfloat;
5558
extern crate rustc_ast;
@@ -63,11 +66,8 @@ extern crate rustc_middle;
6366
extern crate rustc_session;
6467
extern crate rustc_span;
6568
extern crate rustc_target;
66-
#[macro_use]
67-
extern crate tracing;
68-
69-
// Necessary to pull in object code as the rest of the rustc crates are shipped only as rmeta
70-
// files.
69+
// Linking `rustc_driver` pulls in the required object code as the rest of the rustc crates are
70+
// shipped only as rmeta files.
7171
#[allow(unused_extern_crates)]
7272
extern crate rustc_driver;
7373

0 commit comments

Comments
 (0)