From f97e094b198a0eb6115251f42e3f6e5dcec731f8 Mon Sep 17 00:00:00 2001 From: Philip Munksgaard Date: Thu, 4 Oct 2018 22:23:19 +0200 Subject: 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. --- src/test/rustdoc/playground-empty.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/test/rustdoc') 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 //! //! ``` -- cgit 1.4.1-3-g733a5