New issue
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
Generators are not supported by TokenStream #123191
Comments
That's not quite the entire error, could you post that, including a full reproduction? I don't think there is anything about proc macros that is wrong here... are you using |
|
You need to use Rust 2024. |
Ah, I missed that. In that case, I guess the problem may be that the crate that defines macro is a pre-2024 edition since call_site span inherits its edition and the error message seems to be the same as the one that occurs when using it in older editions. (Although, I do not know what the edition actually is, as a complete reproduction is not provided.) |
You right, I forgot to add it in the proc macro lib. Thank you ! |
I tried this code:
I expected to see this happen: No error
Instead, this happened: I got this error
If bandwidth is limited, I'm willing to attempt integration. Could you please provide some guidance on how to proceed?
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: