Skip to content

Conversation

@jonas-schievink
Copy link
Contributor

This PR threads diagnostics through body lowering using the BodySourceMap, and emits InactiveCode diagnostics for expressions, statements, and match arms that are #[cfg]d out.

@bors
Copy link
Contributor

bors bot commented Oct 23, 2020

✌️ jonas-schievink can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L10[diagnostics.rs]
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L18[diagnostics.rs]

This diagnostic is triggered if rust-analyzer is unable to discover referred module.
Copy link
Contributor

Choose a reason for hiding this comment

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

wait, we should have this gitignored, but this is unrelated to PR

bors d+

Copy link
Contributor

Choose a reason for hiding this comment

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

bors r+

I have some trouble distinguishing d and r recently...

@bors
Copy link
Contributor

bors bot commented Oct 23, 2020

@bors bors bot merged commit c483212 into rust-lang:master Oct 23, 2020
@jonas-schievink jonas-schievink deleted the cfg-body branch October 23, 2020 22:12
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.

3 participants