Skip to content

Commit 4387f99

Browse files
authored
Rollup merge of rust-lang#60267 - gnzlbg:f16c_target_feature, r=alexcrichton
Add feature-gate for f16c target feature r? @alexcrichton
2 parents 1738273 + d37f3fc commit 4387f99

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/libsyntax/feature_gate.rs

+1
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ declare_features! (
403403
(active, cmpxchg16b_target_feature, "1.32.0", Some(44839), None),
404404
(active, movbe_target_feature, "1.34.0", Some(44839), None),
405405
(active, rtm_target_feature, "1.35.0", Some(44839), None),
406+
(active, f16c_target_feature, "1.36.0", Some(44839), None),
406407

407408
// Allows macro invocations on modules expressions and statements and
408409
// procedural macros to expand to non-items.

src/test/ui/target-feature-gate.rs

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
// gate-test-cmpxchg16b_target_feature
2525
// gate-test-movbe_target_feature
2626
// gate-test-rtm_target_feature
27+
// gate-test-f16c_target_feature
2728
// min-llvm-version 6.0
2829

2930
#[target_feature(enable = "avx512bw")]

src/test/ui/target-feature-gate.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0658]: the target feature `avx512bw` is currently unstable
2-
--> $DIR/target-feature-gate.rs:29:18
2+
--> $DIR/target-feature-gate.rs:30:18
33
|
44
LL | #[target_feature(enable = "avx512bw")]
55
| ^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)