Print generated files
This commit is contained in:
parent
31048e53b5
commit
197b7e6d97
1 changed files with 3 additions and 1 deletions
|
|
@ -3934,7 +3934,9 @@ macro_rules! panic {
|
|||
|
||||
let rng = &mut rand::thread_rng();
|
||||
let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap());
|
||||
let out_file = out_dir.join(format!("{}.rs", T::name()));
|
||||
let out_file_name = format!("{}.rs", T::name());
|
||||
let out_file = out_dir.join(&out_file_name);
|
||||
println!("Generating {}", out_file_name);
|
||||
let contents = mk_tests::<T, _>(NTESTS, rng);
|
||||
|
||||
File::create(out_file)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue