Skip to content
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

Procedural macro attributes are not supported #6758

Closed
whaqzhzd opened this issue Dec 8, 2020 · 5 comments
Closed

Procedural macro attributes are not supported #6758

whaqzhzd opened this issue Dec 8, 2020 · 5 comments
Labels
A-macro macro expansion

Comments

@whaqzhzd
Copy link

whaqzhzd commented Dec 8, 2020

rust can be compiled, but ra says these fields don't exist.

This is the smallest demo
proc_attributes_bug.zip

@bjorn3
Copy link
Member

bjorn3 commented Dec 8, 2020

Proc macro attributes are not yet supported.

@whaqzhzd
Copy link
Author

whaqzhzd commented Dec 8, 2020

Thank you for taking your valuable time to answer this question ~ is there any way to temporarily block the rust-analyzer error messages in vscode until rust-analyzer is supported.

@lnicola
Copy link
Member

lnicola commented Dec 8, 2020

You can only selectively disable diagnostics:

    "rust-analyzer.diagnostics.disabled": [
        "no-such-field"
    ]

@whaqzhzd
Copy link
Author

whaqzhzd commented Dec 8, 2020

Thank you

@lnicola lnicola added the A-macro macro expansion label Dec 8, 2020
@lnicola lnicola changed the title proc attributes bug Procedural macro attributes are not supported Dec 8, 2020
@lnicola
Copy link
Member

lnicola commented Dec 20, 2020

Duplicate of #6029

@lnicola lnicola marked this as a duplicate of #6029 Dec 20, 2020
@lnicola lnicola closed this as completed Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macro macro expansion
Projects
None yet
Development

No branches or pull requests

3 participants