ekzhang / crepe

Datalog compiler embedded in Rust as a procedural macro
Apache License 2.0
453 stars 16 forks source link

"Use" struct name interpreted as keyword; causes unsuccessful rule construction #28

Open l-monninger opened 9 months ago

l-monninger commented 9 months ago

Summary

If you provide an @input struct Use(...), this token will be rewritten by the macro such that the Rust compiler reinterprets it as an invalid syntax for the use keyword.

Reproducible Example

use crepe::crepe;

crepe! {

    @input
    struct Use(i32, i32);

    @input
    struct Next(i32, i32);

}