]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/test.rs
Rollup merge of #88795 - FabianWolff:issue-88684, r=wesleywiser
[rust.git] / src / bootstrap / test.rs
index d12e86b7c1deb1832e71510d1a5b6fd73059c666..386ffb384a81ee744d9201e516ce466800c92a61 100644 (file)
@@ -925,6 +925,11 @@ fn run(self, builder: &Builder<'_>) {
                     .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);
             }
         }