We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fab016 commit bc4f169Copy full SHA for bc4f169
tests/run-make/rustdoc-test-args/foo.rs
@@ -0,0 +1,3 @@
1
+//! ```
2
+//! let x = 12;
3
tests/run-make/rustdoc-test-args/rmake.rs
@@ -0,0 +1,18 @@
+extern crate run_make_support;
+
+use run_make_support::{out_dir, rustdoc};
4
+use std::{fs, iter};
5
+use std::path::Path;
6
7
+fn generate_a_lot_of_cfgs(path: &Path) {
8
+ let content = iter::repeat("--cfg=a\n").take(100_000).collect::<String>();
9
+ fs::write(path, content.as_bytes()).expect("failed to create args file");
10
+}
11
12
+fn main() {
13
+ let arg_file = out_dir().join("args");
14
+ generate_a_lot_of_cfgs(&arg_file);
15
16
+ let arg_file = format!("@{}", arg_file.display());
17
+ rustdoc().arg("--test").arg(&arg_file).arg("foo.rs").run();
18
0 commit comments