How to compile expanded macro code?

I have three generic errors in a procedural macro call about a function that requires one argument, but I have provided zero;

expected 1 argument, found 0

however the macro is giant. The errors span the entire macro call.

smodel! {
    type Arena = EntityArena;

    /// Semantic data type representing one of several ActionScript 3 elements.
    pub struct Entity {
        ...
    }

    // subtypes of Entity...
}

When I expand it using rust-analyser, I get a code that does not compile due to incorrect or missing pieces of references (it generates dot started things).

This is the repository for the smodel! macro.. This is place where I have put the translation code: crates/smodel-proc/src/processing, where steps 3.8 and 4.1 are the ones involved with method expansion.

Nevermind, these 3 errors were a lie of the IDE.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.