You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some keywords in rust that are allowed in cairo (like type).
The idea of this issue is to find an elegant solution to escape rust keywords when struct or enum members/variants are expanded. But here are some limitations:
With proc-macro2, we can't cast the string r#type into an Ident. It's an invalid identifier.
Also, when using quote!, we can't do quote!(r##name).
Currently there's a workaround only for the type keyword.
The text was updated successfully, but these errors were encountered:
There are some keywords in rust that are allowed in cairo (like
type
).The idea of this issue is to find an elegant solution to escape rust keywords when struct or enum members/variants are expanded. But here are some limitations:
proc-macro2
, we can't cast the stringr#type
into anIdent
. It's an invalid identifier.quote!
, we can't doquote!(r##name)
.Currently there's a workaround only for the
type
keyword.The text was updated successfully, but these errors were encountered: