File tree 2 files changed +12
-8
lines changed
2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 8
8
rustc:: untranslatable_diagnostic
9
9
) ]
10
10
11
+ // Some "regular" crates we want to share with rustc
12
+ #[ macro_use]
13
+ extern crate tracing;
14
+
15
+ // The rustc crates we need
11
16
extern crate rustc_data_structures;
12
17
extern crate rustc_driver;
13
18
extern crate rustc_hir;
@@ -16,8 +21,6 @@ extern crate rustc_log;
16
21
extern crate rustc_metadata;
17
22
extern crate rustc_middle;
18
23
extern crate rustc_session;
19
- #[ macro_use]
20
- extern crate tracing;
21
24
22
25
use std:: env:: { self , VarError } ;
23
26
use std:: num:: NonZero ;
Original file line number Diff line number Diff line change 49
49
// Needed for rustdoc from bootstrap (with `-Znormalize-docs`).
50
50
#![ recursion_limit = "256" ]
51
51
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;
53
56
57
+ // The rustc crates we need
54
58
extern crate rustc_apfloat;
55
59
extern crate rustc_ast;
56
60
extern crate rustc_const_eval;
@@ -63,11 +67,8 @@ extern crate rustc_middle;
63
67
extern crate rustc_session;
64
68
extern crate rustc_span;
65
69
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.
70
+ // Linking `rustc_driver` pulls in the required object code as the rest of the rustc crates are
71
+ // shipped only as rmeta files.
71
72
#[ allow( unused_extern_crates) ]
72
73
extern crate rustc_driver;
73
74
You can’t perform that action at this time.
0 commit comments