Skip to content

Commit

Permalink
Merge pull request #517 from Marcos-cat/main
Browse files Browse the repository at this point in the history
Allow macros to generate Modules
  • Loading branch information
kaikalii committed Jun 28, 2024
2 parents c7129ef + 8a41e01 commit 1459c35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compile/modifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1290,9 +1290,9 @@ impl Compiler {
Item::Import(import) => self
.import(import, None)
.map_err(|e| e.trace_macro(span.clone()))?,
Item::Module(_) => {
self.add_error(span.clone(), "Macros may not generate test scopes")
}
Item::Module(module) => self
.module(module, None)
.map_err(|e| e.trace_macro(span.clone()))?,
};
}

Expand Down

0 comments on commit 1459c35

Please sign in to comment.