Implement --check-cfg option (RFC 3013) by mwkmwkmwk · Pull Request #89346 · rust-lang/rust

@wanda-phi

@wanda-phi

@wanda-phi

petrochenkov

@apiraino apiraino added the T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.

label

Oct 14, 2021

@JohnCSimon JohnCSimon added S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

and removed S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

labels

Oct 31, 2021

@rustbot rustbot added the S-inactive

Status: Inactive and waiting on the author. This is often applied to closed PRs.

label

Jan 30, 2022

@Urgau Urgau mentioned this pull request

Feb 11, 2022

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Feb 18, 2022
Implement --check-cfg option (RFC 3013), take 2

This pull-request implement RFC 3013: Checking conditional compilation at compile time (rust-lang/rfcs#3013) and is based on the previous attempt rust-lang#89346 by `@mwkmwkmwk` that was closed due to inactivity.

I have address all the review comments from the previous attempt and added some more tests.

cc rust-lang#82450
r? `@petrochenkov`

@Urgau Urgau mentioned this pull request

Feb 19, 2022

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Feb 25, 2022
…eGomez

Wire up unstable rustc --check-cfg to rustdoc

This pull-request wire up the new unstable `--check-cfg` option from `rustc` to `rustdoc` as [requested](rust-lang#93915 (comment)) in the [pull-request](rust-lang#93915) that introduce `--check-cfg`.

The motivation was describe in the original PR by `@jyn514` who wrote rust-lang#89346 (comment):
> > add plumbing to pass --check-cfg from rustdoc (do we want this one?)
>
> It would be useful, I think, it catches issues like cfg(doctst) or something (and in general I would like expansion to match rustc as closely as possible).

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Feb 25, 2022
…eGomez

Wire up unstable rustc --check-cfg to rustdoc

This pull-request wire up the new unstable `--check-cfg` option from `rustc` to `rustdoc` as [requested](rust-lang#93915 (comment)) in the [pull-request](rust-lang#93915) that introduce `--check-cfg`.

The motivation was describe in the original PR by ``@jyn514`` who wrote rust-lang#89346 (comment):
> > add plumbing to pass --check-cfg from rustdoc (do we want this one?)
>
> It would be useful, I think, it catches issues like cfg(doctst) or something (and in general I would like expansion to match rustc as closely as possible).