File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1616
1717#[ macro_use]
1818extern crate lazy_static;
19+ #[ macro_use]
20+ extern crate tracing;
21+
22+ // N.B. these need `extern crate` even in 2018 edition
23+ // because they're loaded implicitly from the sysroot.
24+ // The reason they're loaded from the sysroot is because
25+ // the rustdoc artifacts aren't stored in rustc's cargo target directory.
26+ // So if `rustc` was specified in Cargo.toml, this would spuriously rebuild crates.
27+ //
28+ // Dependencies listed in Cargo.toml do not need `extern crate`.
1929extern crate rustc_ast;
2030extern crate rustc_ast_pretty;
2131extern crate rustc_attr;
@@ -42,8 +52,6 @@ extern crate rustc_target;
4252extern crate rustc_trait_selection;
4353extern crate rustc_typeck;
4454extern crate test as testing;
45- #[ macro_use]
46- extern crate tracing;
4755
4856use std:: default:: Default ;
4957use std:: env;
You can’t perform that action at this time.
0 commit comments