Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
505 B
Rust
Raw Normal View History

2024-03-23 15:48:44 +01:00
extern crate run_make_support;
use run_make_support::{rustdoc, tmp_dir};
2024-03-23 15:48:44 +01:00
use std::path::Path;
use std::{fs, iter};
2024-03-23 15:48:44 +01:00
fn generate_a_lot_of_cfgs(path: &Path) {
let content = iter::repeat("--cfg=a\n").take(100_000).collect::<String>();
fs::write(path, content.as_bytes()).expect("failed to create args file");
}
fn main() {
let arg_file = tmp_dir().join("args");
2024-03-23 15:48:44 +01:00
generate_a_lot_of_cfgs(&arg_file);
rustdoc().out_dir(tmp_dir()).input("foo.rs").arg_file(&arg_file).arg("--test").run();
2024-03-23 15:48:44 +01:00
}