I'm working on the file in https://pastebin.com/QDnJzukq (sorry about the mess, still trying to get things working). When I use it (usage is independent of the error, I get this error (from nightly):
error[E0433]: failed to resolve: use of undeclared crate or module `_gen_lists`
--> 2015/src/day3.rs:7:1
|
7 | #[aoc(day03)]
| ^^^^^^^^^^^^^
| |
| use of undeclared crate or module `_gen_lists`
| in this procedural macro expansion
|
::: /home/minifig/projects/aoc-zen-runner/aoc-zen-runner-macros/src/lib.rs:548:1
|
548 | pub fn aoc(args: TokenStream, item: TokenStream) -> TokenStream {
| --------------------------------------------------------------- in this expansion of `#[aoc]`
The module _gen_lists is being generated in agg_to_solution_lists_mod , and it's the first thing getting called & output to the token stream. Unfortunately, I have hordes of code that need to reference _gen_lists for running the functions reference from there.
Am I no longer allowed to generate modules on the fly and reference those generated modules later in the macro? Or is there another way I need to go about this other than spitting out blocks of quoted code?
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
