about summary refs log tree commit diff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-03-31 22:33:07 -0400
committerJoshua Nelson <jyn514@gmail.com>2021-04-02 16:34:53 -0400
commite4244e37103d83b2cd54637ca2ac4f1c76c35a43 (patch)
tree7d8752990958f1b9a2c34e041383ba180bc6f097 /src/tools/compiletest
parenta5029ac0ab372aec515db2e718da6d7787f3d122 (diff)
downloadrust-e4244e37103d83b2cd54637ca2ac4f1c76c35a43.tar.gz
rust-e4244e37103d83b2cd54637ca2ac4f1c76c35a43.zip
Don't load all extern crates unconditionally
Instead, only load the crates that are linked to with intra-doc links.

This doesn't help very much with any of rustdoc's fundamental issues
with freezing the resolver, but it at least fixes a stable-to-stable
regression, and makes the crate loading model somewhat more consistent
with rustc's.
Diffstat (limited to 'src/tools/compiletest')
-rw-r--r--src/tools/compiletest/src/header.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/compiletest/src/header.rs b/src/tools/compiletest/src/header.rs
index 83ea676e8f4..531a23d76a2 100644
--- a/src/tools/compiletest/src/header.rs
+++ b/src/tools/compiletest/src/header.rs
@@ -708,8 +708,8 @@ impl Config {
         self.parse_name_value_directive(line, "aux-crate").map(|r| {
             let mut parts = r.trim().splitn(2, '=');
             (
-                parts.next().expect("aux-crate name").to_string(),
-                parts.next().expect("aux-crate value").to_string(),
+                parts.next().expect("missing aux-crate name (e.g. log=log.rs)").to_string(),
+                parts.next().expect("missing aux-crate value (e.g. log=log.rs)").to_string(),
             )
         })
     }