-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Unexpected interpolate tokens in quote_item!
macro
#24914
Comments
I confirm the same issue with my little Derive macro tojson_macros Edit, my error is:
|
As of |
This bug persists but the interpolated item seems now "expanded", the new error is:
|
After investigations, it is normal that the code does not compile. This is due to the introduction of So the only problem is the bad error message. |
Triage: compiler plugin stuff is changing wildly; it will not be using this interface publicly. And given that is about a diagnostic, and nobody has commented in a while, I'm going to give this a close. If someone else sees a bad diagnostic like this with stable code, please let me know! |
Recent changes (I guess #23085) make interpolated items unexpected when quoting items. The error is:
expected one of
const,
extern,
fn,
pub,
type,
unsafe, or
}, found
an interpolated item``. The full failing code is available ptal/oak@20ddd3d and a snippet is below:On
rustc 1.1.0-dev (441b3f0c2 2015-04-28) (built 2015-04-28)
The text was updated successfully, but these errors were encountered: