We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am not sure if this is a cargo-expand issue or intentional
If a syn::Type has generics and is used in an expression like #ty::#ident, cargo-expand outputs "(/ERROR/)"
syn::Type
#ty::#ident
use quote::quote; let ty = syn::parse_quote! { Box<Foo> }; // put this somewhere in the expand output quote! { #ty::some_thing }
The output will be:
(/*ERROR*/)
The catch is the syntax should be quote! { <#ty>::some_thing }. However, macrotest will pass.
quote! { <#ty>::some_thing }
Ideally, there are some places in other tests/examples that use the macro and will catch the issue, but would be nice if macrotest fails.
The text was updated successfully, but these errors were encountered:
I guess this is a cargo-expand or rustc issue since the macrotest fails if the cargo-expand exits with a non-zero code.
Sorry, something went wrong.
No branches or pull requests
I am not sure if this is a cargo-expand issue or intentional
If a
syn::Type
has generics and is used in an expression like#ty::#ident
, cargo-expand outputs "(/ERROR/)"The output will be:
The catch is the syntax should be
quote! { <#ty>::some_thing }
. However, macrotest will pass.Ideally, there are some places in other tests/examples that use the macro and will catch the issue, but would be nice if macrotest fails.
The text was updated successfully, but these errors were encountered: