File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5
- refs/heads/try: 3908bae77b402623794370c976d6c2c2a3b699d4
5
+ refs/heads/try: 00a8d65ef3389164f1c71ec95f686530fdfc9d9d
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
Original file line number Diff line number Diff line change @@ -2177,6 +2177,14 @@ The following configurations must be defined by the implementation:
2177
2177
* ` unix ` . See ` target_family ` .
2178
2178
* ` windows ` . See ` target_family ` .
2179
2179
2180
+ You can also set another attribute based on a ` cfg ` variable with ` cfg_attr ` :
2181
+
2182
+ ``` rust,ignore
2183
+ #[cfg_attr(a, b)]
2184
+ ```
2185
+
2186
+ Will be the same as ` #[b] ` if ` a ` is set by ` cfg ` , and nothing otherwise.
2187
+
2180
2188
### Lint check attributes
2181
2189
2182
2190
A lint check names a potentially undesirable coding pattern, such as
@@ -2444,7 +2452,9 @@ The currently implemented features of the reference compiler are:
2444
2452
* ` simd_ffi ` - Allows use of SIMD vectors in signatures for foreign functions.
2445
2453
The SIMD interface is subject to change.
2446
2454
2447
- * ` staged_api ` - Allows usage of stability markers and ` #![staged_api] ` in a crate
2455
+ * ` staged_api ` - Allows usage of stability markers and ` #![staged_api] ` in a
2456
+ crate. Stability markers are also attributes: ` #[stable] ` ,
2457
+ ` #[unstable] ` , and ` #[deprecated] ` are the three levels.
2448
2458
2449
2459
* ` static_assert ` - The ` #[static_assert] ` functionality is experimental and
2450
2460
unstable. The attribute can be attached to a ` static ` of
You can’t perform that action at this time.
0 commit comments