File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 16
16
17
17
#[ macro_use]
18
18
extern 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`.
19
29
extern crate rustc_ast;
20
30
extern crate rustc_ast_pretty;
21
31
extern crate rustc_attr;
@@ -42,8 +52,6 @@ extern crate rustc_target;
42
52
extern crate rustc_trait_selection;
43
53
extern crate rustc_typeck;
44
54
extern crate test as testing;
45
- #[ macro_use]
46
- extern crate tracing;
47
55
48
56
use std:: default:: Default ;
49
57
use std:: env;
You can’t perform that action at this time.
0 commit comments