From d59af76be5433bbe6257cd0b6ee9686ecab3c03a Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Mon, 15 Aug 2022 16:02:03 +0900 Subject: [PATCH] Fix compile_bytecode --- derive/src/compile_bytecode.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/derive/src/compile_bytecode.rs b/derive/src/compile_bytecode.rs index 7d067552c..9da16f4c6 100644 --- a/derive/src/compile_bytecode.rs +++ b/derive/src/compile_bytecode.rs @@ -191,7 +191,13 @@ impl CompilationSource { let code = match code { Ok(code) => code, - Err(_) if stem.starts_with("badsyntax_") => continue, + Err(_) + if stem.starts_with("badsyntax_") + | parent.ends_with(".encoded_modules") => + { + // TODO: handle with macro arg rather than hard-coded path + continue; + } Err(e) => return Err(e), };