diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2021-03-31 22:33:07 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-04-02 16:34:53 -0400 |
| commit | e4244e37103d83b2cd54637ca2ac4f1c76c35a43 (patch) | |
| tree | 7d8752990958f1b9a2c34e041383ba180bc6f097 /src/tools/compiletest | |
| parent | a5029ac0ab372aec515db2e718da6d7787f3d122 (diff) | |
| download | rust-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.rs | 4 |
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(), ) }) } |
