This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 88 rustc:: untranslatable_diagnostic
99) ]
1010
11+ // Some "regular" crates we want to share with rustc
12+ #[ macro_use]
13+ extern crate tracing;
14+
15+ // The rustc crates we need
1116extern crate rustc_data_structures;
1217extern crate rustc_driver;
1318extern crate rustc_hir;
@@ -16,8 +21,6 @@ extern crate rustc_log;
1621extern crate rustc_metadata;
1722extern crate rustc_middle;
1823extern crate rustc_session;
19- #[ macro_use]
20- extern crate tracing;
2124
2225use std:: env:: { self , VarError } ;
2326use std:: num:: NonZero ;
Original file line number Diff line number Diff line change 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
57+ // The rustc crates we need
5458extern crate rustc_apfloat;
5559extern crate rustc_ast;
5660extern crate rustc_const_eval;
@@ -63,11 +67,8 @@ extern crate rustc_middle;
6367extern crate rustc_session;
6468extern crate rustc_span;
6569extern 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.
7172#[ allow( unused_extern_crates) ]
7273extern crate rustc_driver;
7374
You can’t perform that action at this time.
0 commit comments