diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-09-12 15:43:30 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-09-13 20:58:06 +0200 |
| commit | 9e482c1add7e02ef3367caa96909e32bf8cdcaf6 (patch) | |
| tree | c94bd6b200fd6d3755893560fbc9a868c4bd2e21 /src/bootstrap | |
| parent | 6a2f500d8711b642d412ee7ce4d29af24f702223 (diff) | |
| download | rust-9e482c1add7e02ef3367caa96909e32bf8cdcaf6.tar.gz rust-9e482c1add7e02ef3367caa96909e32bf8cdcaf6.zip | |
* Enable generate-link-to-def feature on a rustdoc GUI test
* Add test for jump-to-def links background color
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/test.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index d12e86b7c1d..386ffb384a8 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -925,6 +925,11 @@ impl Step for RustdocGUI { .env("RUSTDOC", builder.rustdoc(self.compiler)) .env("RUSTC", builder.rustc(self.compiler)) .current_dir(path); + // FIXME: implement a `// compile-flags` command or similar + // instead of hard-coding this test + if entry.file_name() == "link_to_definition" { + cargo.env("RUSTDOCFLAGS", "-Zunstable-options --generate-link-to-definition"); + } builder.run(&mut cargo); } } |
