From ae6434696c07879bccb019a17bf224c2e923a16d Mon Sep 17 00:00:00 2001 From: ychenfo Date: Wed, 11 May 2022 03:51:01 +0800 Subject: [PATCH] nac3artiq: rename the filename of modinit rename from __nac3_synthesized_modinit__ to to be more idomatic python --- nac3artiq/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nac3artiq/src/lib.rs b/nac3artiq/src/lib.rs index d6ed943fa..fea0abbdb 100644 --- a/nac3artiq/src/lib.rs +++ b/nac3artiq/src/lib.rs @@ -623,7 +623,7 @@ impl Nac3 { format!("def __modinit__():\n base.{}({})", method_name, arg_names.join(", ")) }; let mut synthesized = - parse_program(&synthesized, "__nac3_synthesized_modinit__".to_string().into()).unwrap(); + parse_program(&synthesized, "".to_string().into()).unwrap(); let inner_resolver = Arc::new(InnerResolver { id_to_type: builtins_ty.clone().into(), id_to_def: builtins_def.clone().into(), @@ -657,7 +657,7 @@ impl Nac3 { if let Err(e) = composer.start_analysis(true) { // report error of __modinit__ separately - if !e.contains("__nac3_synthesized_modinit__") { + if !e.contains("") { return Err(CompileError::new_err(format!( "compilation failed\n----------\n{}", e