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
Conversation
☔ The latest upstream changes (presumably #15574) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors r+ |
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).
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+ |
☀️ Test successful - checks-actions |
rust_analyzer
for cfgs when code is being analyzed by rust-analyzerrust_analyzer
for cfgs when code is being analyzed by rust-analyzer
merge commits are not allowed upstream, so I manually copied the changes
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).