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

feat: Enable rust_analyzer for cfgs when code is being analyzed by rust-analyzer #15528

Merged
merged 4 commits into from Sep 8, 2023

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Aug 29, 2023

This allows one to have r-a skip analysis/replace macros that work not well with r-a at all by gating them behind this cfg (an example being the quote macro which r-a struggles with in terms of performance).

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 29, 2023
@bors
Copy link
Collaborator

bors commented Sep 8, 2023

☔ The latest upstream changes (presumably #15574) made this pull request unmergeable. Please resolve the merge conflicts.

@Veykril
Copy link
Member Author

Veykril commented Sep 8, 2023

@bors r+

@bors
Copy link
Collaborator

bors commented Sep 8, 2023

📌 Commit e9e2c1a has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Sep 8, 2023

⌛ Testing commit e9e2c1a with merge d58b7d9...

bors added a commit that referenced this pull request Sep 8, 2023
Enable `rust_analyzer` for cfgs when code is being analyzed by rust-analyzer

This allows one to have r-a skip analysis/replace macros that work not well with r-a at all by gating them behind this cfg (an example being the `quote` macro which r-a struggles with in terms of performance).
@Veykril
Copy link
Member Author

Veykril commented Sep 8, 2023

Actually, let me change things so that we only set these for the workspace to prevent people from relying on this in published libraries as this is as escape hatch for current r-a problems really.
@bors r-

@Veykril
Copy link
Member Author

Veykril commented Sep 8, 2023

@bors r+

@bors
Copy link
Collaborator

bors commented Sep 8, 2023

📌 Commit fddef42 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Sep 8, 2023

⌛ Testing commit fddef42 with merge 347695a...

@bors
Copy link
Collaborator

bors commented Sep 8, 2023

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 347695a to master...

@bors bors merged commit 347695a into rust-lang:master Sep 8, 2023
10 checks passed
@lnicola lnicola changed the title Enable rust_analyzer for cfgs when code is being analyzed by rust-analyzer feat: Enable rust_analyzer for cfgs when code is being analyzed by rust-analyzer Sep 9, 2023
@Veykril Veykril deleted the r-a-cfg branch September 9, 2023 14:53
anarachnid added a commit to anarachnid/rust-analyzer that referenced this pull request Oct 6, 2023
merge commits are not allowed upstream, so I manually copied the changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants