We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7f9a6c commit b93a831Copy full SHA for b93a831
src/librustdoc/lib.rs
@@ -21,7 +21,11 @@ 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
-// Dependencies listed in Cargo.toml do not need extern crate.
+// 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`.
29
extern crate rustc_ast;
30
extern crate rustc_ast_pretty;
31
extern crate rustc_attr;
0 commit comments