fn compile_modules() -> Vec<CompiledModule> {
    let mut src_files = move_stdlib::move_stdlib_files();
    src_files.push(MOVE_BENCH_SRC_PATH.to_str().unwrap().to_owned());
    let (_files, compiled_units) = Compiler::new(
        vec![(src_files, move_stdlib::move_stdlib_named_addresses())],
        vec![],
    )
    .build_and_report()
    .expect("Error compiling...");
    compiled_units
        .into_iter()
        .map(|unit| match unit {
            AnnotatedCompiledUnit::Module(annot_unit) => annot_unit.named_module.module,
            AnnotatedCompiledUnit::Script(_) => {
                panic!("Expected a module but received a script")
            }
        })
        .collect()
}
// Compile `bench.move` and its dependencies
Compile `bench.move` and its dependencies
Compile ` bench . move ` and its dependencies
fn compile_modules() -> Vec<CompiledModule> {
    let mut src_files = move_stdlib::move_stdlib_files();
    src_files.push(MOVE_BENCH_SRC_PATH.to_str().unwrap().to_owned());
    let (_files, compiled_units) = Compiler::new(
        vec![(src_files, move_stdlib::move_stdlib_named_addresses())],
        vec![],
    )
    .build_and_report()
    .expect("Error compiling...");
    compiled_units
        .into_iter()
        .map(|unit| match unit {
            AnnotatedCompiledUnit::Module(annot_unit) => annot_unit.named_module.module,
            AnnotatedCompiledUnit::Script(_) => {
                panic!("Expected a module but received a script")
            }
        })
        .collect()
}
fn compile_modules ( ) -> Vec < CompiledModule > { let mut src_files = move_stdlib :: move_stdlib_files ( ) ; src_files . push ( MOVE_BENCH_SRC_PATH . to_str ( ) . unwrap ( ) . to_owned ( ) ) ; let ( _files , compiled_units ) = Compiler :: new ( vec ! [ ( src_files move_stdlib move_stdlib_named_addresses ( ) ) ] , vec ! [ ] , ) . build_and_report ( ) . expect ( " " ) ; compiled_units . into_iter ( ) . map ( | unit | match unit { AnnotatedCompiledUnit :: Module ( annot_unit ) => annot_unit . named_module . module , AnnotatedCompiledUnit :: Script ( _ ) => { panic ! ( " " ) } } ) . collect ( ) }
Compile `bench.move` and its dependencies
Compile ` bench . move ` and its dependencies