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

Use = [..] in example #76

Merged
merged 1 commit into from
Dec 6, 2023
Merged

Use = [..] in example #76

merged 1 commit into from
Dec 6, 2023

Conversation

stepancheg
Copy link
Contributor

CLion likes this syntax more because it is valid before proc macro:

For the reference, this is how it looks like in CLion:

image

Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please make sure there is an issue filed upstream with CLion. This has been legal syntax in stable Rust for over 3.5 years.

Is there some setting equivalent to rust-analyzer.procMacro.enable or rust-analyzer.procMacro.attributes.enable that might avoid the codepath where the pre-expansion input is being treated as an error by the IDE?

@stepancheg
Copy link
Contributor Author

Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dtolnay dtolnay merged commit 5c13029 into dtolnay:master Dec 6, 2023
13 checks passed
@stepancheg stepancheg deleted the dot-dot branch December 6, 2023 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants