about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilip Munksgaard <pmunksgaard@gmail.com>2018-10-04 22:23:19 +0200
committerPhilip Munksgaard <pmunksgaard@gmail.com>2018-10-04 22:23:19 +0200
commitf97e094b198a0eb6115251f42e3f6e5dcec731f8 (patch)
treecbbc567a1846c0663b13424ac03d71ba55bb08d5
parent7d3d835c58e789127744076c97110664ea9c6087 (diff)
downloadrust-f97e094b198a0eb6115251f42e3f6e5dcec731f8.tar.gz
rust-f97e094b198a0eb6115251f42e3f6e5dcec731f8.zip
Add compile flags to playground-empty test
"Run" links to the playground are not added to the generated documentation if
the unstable `--playground-url` argument is not passed to rustdoc. Therefore,
without specifying `--playground-url` as a compile-flag, the test doesn't
correctly assert that `#![doc(html_playground_url = "")]` removes playground
links.
-rw-r--r--src/test/rustdoc/playground-empty.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/rustdoc/playground-empty.rs b/src/test/rustdoc/playground-empty.rs
index 00881a62dd0..2b3120fa5b4 100644
--- a/src/test/rustdoc/playground-empty.rs
+++ b/src/test/rustdoc/playground-empty.rs
@@ -12,6 +12,8 @@
 
 #![doc(html_playground_url = "")]
 
+// compile-flags:-Z unstable-options --playground-url https://play.rust-lang.org/
+
 //! module docs
 //!
 //! ```