1
Fork 0

Add a comment why extern crate is necessary for rustdoc

This commit is contained in:
Joshua Nelson 2020-09-14 22:03:54 -04:00
parent 7402a39447
commit f7f9a6c135

View file

@ -16,6 +16,12 @@
#[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_target;
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;