]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/lib.rs
Add a comment why `extern crate` is necessary for rustdoc
[rust.git] / src / librustdoc / lib.rs
index 73a783d54060c4722f8668a398f1f8d9cd0d2026..94e51d91b542a27ed584f44d42aa2b39751fde0e 100644 (file)
 
 #[macro_use]
 extern crate lazy_static;
+#[macro_use]
+extern crate tracing;
+
+// N.B. these need `extern crate` even in 2018 edition
+// because they're loaded implicitly from the sysroot.
+// Dependencies listed in Cargo.toml do not need extern crate.
 extern crate rustc_ast;
 extern crate rustc_ast_pretty;
 extern crate rustc_attr;
@@ -42,8 +48,6 @@
 extern crate rustc_trait_selection;
 extern crate rustc_typeck;
 extern crate test as testing;
-#[macro_use]
-extern crate tracing;
 
 use std::default::Default;
 use std::env;