Print generated files

This commit is contained in:
est31 2017-05-07 03:03:58 +02:00
parent e24673b6c7
commit 191c0be298
1 changed files with 3 additions and 1 deletions

View File

@ -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)