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), };