We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfc656c commit a721d88Copy full SHA for a721d88
text/0000-cfg-target.md
@@ -1,6 +1,6 @@
1
- Feature Name: `cfg-target`
2
- Start Date: 2020-09-27
3
-- RFC PR: [rust-lang/rfcs#2991](https://github.com/rust-lang/rfcs/pull/2991)
+- RFC PR: [rust-lang/rfcs#3239](https://github.com/rust-lang/rfcs/pull/3239)
4
- Rust Issue: [rust-lang/rust#0000](https://github.com/rust-lang/rust/issues/0000)
5
6
# Summary
@@ -36,6 +36,16 @@ mod mac_catalyst;
36
37
This includes `#[cfg_attr(target = "...", attr)]`.
38
39
+It would also support to specify each `target_*` inside a new `target`
40
+attribute as follows:
41
+
42
+```rust
43
+// So we can for example rewrite:
44
+#[cfg(all(target_os = "linux", target_arch = "arm"))]
45
+// as:
46
+#[cfg(target(os = "linux", arch = "arm"))]
47
+```
48
49
# Reference-level explanation
50
[reference-level-explanation]: #reference-level-explanation
51
0 commit comments