@@ -218,24 +218,23 @@ pub fn generate_asts(
218218 . namespace
219219 . to_suffix ( )
220220 . expect ( "namespace should be set for mlmap module" ) ;
221- // copy the mlmap to the bs build path for editor tooling
222221 let base_build_path = package. get_build_path ( ) + "/" + & suffix;
223- let base_bs_build_path = package. get_bs_build_path ( ) + "/" + & suffix;
222+ let base_ocaml_build_path = package. get_ocaml_build_path ( ) + "/" + & suffix;
224223 let _ = std:: fs:: copy (
225224 base_build_path. to_string ( ) + ".cmi" ,
226- base_bs_build_path . to_string ( ) + ".cmi" ,
225+ base_ocaml_build_path . to_string ( ) + ".cmi" ,
227226 ) ;
228227 let _ = std:: fs:: copy (
229228 base_build_path. to_string ( ) + ".cmt" ,
230- base_bs_build_path . to_string ( ) + ".cmt" ,
229+ base_ocaml_build_path . to_string ( ) + ".cmt" ,
231230 ) ;
232231 let _ = std:: fs:: copy (
233232 base_build_path. to_string ( ) + ".cmj" ,
234- base_bs_build_path . to_string ( ) + ".cmj" ,
233+ base_ocaml_build_path . to_string ( ) + ".cmj" ,
235234 ) ;
236235 let _ = std:: fs:: copy (
237236 base_build_path. to_string ( ) + ".mlmap" ,
238- base_bs_build_path . to_string ( ) + ".mlmap" ,
237+ base_ocaml_build_path . to_string ( ) + ".mlmap" ,
239238 ) ;
240239 match ( mlmap_hash, mlmap_hash_after) {
241240 ( Some ( digest) , Some ( digest_after) ) => !digest. eq ( & digest_after) ,
@@ -367,7 +366,6 @@ fn generate_ast(
367366 ) )
368367 } ;
369368 if let Ok ( ( ast_path, _) ) = & result {
370- // let dir = std::path::Path::new(filename).parent().unwrap();
371369 let _ = std:: fs:: copy (
372370 Path :: new ( & build_path_abs) . join ( & ast_path) ,
373371 std:: path:: Path :: new ( & package. get_build_path ( ) ) . join ( ast_path. file_name ( ) . unwrap ( ) ) ,
0 commit comments