rust icon indicating copy to clipboard operation
rust copied to clipboard

Tracking Issue for RFC 3013: Checking conditional compilation at compile time

Open ehuss opened this issue 3 years ago • 40 comments

This is a tracking issue for the RFC 3013: Checking conditional compilation at compile time (rust-lang/rfcs#3013).

Issues: https://github.com/rust-lang/rust/labels/F-check-cfg Documentation: https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html

About tracking issues

Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

Steps

  • [x] Implement the RFC (cc @rust-lang/compiler -- can anyone write up mentoring instructions?)
  • [X] Adjust documentation (check_cfg - Unstable book)
  • [ ] Stabilization PR (FCP: https://github.com/rust-lang/rust/issues/82450#issuecomment-1965328542)

Unresolved Questions

  • Which cfgs should be implicitly included? See this list in bootstrap for an example of some values that need "adding in" atop compiler defaults. (Try to go to master in the link above; the list may have been updated since then).

Implementation history

  • #93915
  • rust-lang/cargo#10408
  • rust-lang/cargo#10428
  • rust-lang/cargo#10486
  • and many more

ehuss avatar Feb 23 '21 18:02 ehuss