Skip to content

Commit

Permalink
Add a comment why extern crate is necessary for rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Sep 15, 2020
1 parent 7402a39 commit f7f9a6c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/librustdoc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit f7f9a6c

Please sign in to comment.