Skip to content

Commit f97e094

Browse files
committed
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.
1 parent 7d3d835 commit f97e094

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/rustdoc/playground-empty.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
#![doc(html_playground_url = "")]
1414

15+
// compile-flags:-Z unstable-options --playground-url https://play.rust-lang.org/
16+
1517
//! module docs
1618
//!
1719
//! ```

0 commit comments

Comments
 (0)