File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
- Feature Name: ` cfg-target `
2
2
- Start Date: 2020-09-27
3
- - RFC PR: [ rust-lang/rfcs #2991 ] ( https://github.com/rust-lang/rfcs/pull/2991 )
3
+ - RFC PR: [ rust-lang/rfcs #3239 ] ( https://github.com/rust-lang/rfcs/pull/3239 )
4
4
- Rust Issue: [ rust-lang/rust #0000 ] ( https://github.com/rust-lang/rust/issues/0000 )
5
5
6
6
# Summary
@@ -36,6 +36,16 @@ mod mac_catalyst;
36
36
37
37
This includes ` #[cfg_attr(target = "...", attr)] ` .
38
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
+
39
49
# Reference-level explanation
40
50
[ reference-level-explanation ] : #reference-level-explanation
41
51
You can’t perform that action at this time.
0 commit comments