Skip to content

Commit a29425c

Browse files
committed
Stabilize f16c_target_feature
1 parent 4839886 commit a29425c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compiler/rustc_codegen_ssa/src/target_features.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const X86_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
187187
("bmi2", None),
188188
("cmpxchg16b", Some(sym::cmpxchg16b_target_feature)),
189189
("ermsb", Some(sym::ermsb_target_feature)),
190-
("f16c", Some(sym::f16c_target_feature)),
190+
("f16c", None),
191191
("fma", None),
192192
("fxsr", None),
193193
("gfni", Some(sym::avx512_target_feature)),
@@ -396,7 +396,6 @@ pub fn from_target_feature(
396396
Some(sym::cmpxchg16b_target_feature) => rust_features.cmpxchg16b_target_feature,
397397
Some(sym::movbe_target_feature) => rust_features.movbe_target_feature,
398398
Some(sym::rtm_target_feature) => rust_features.rtm_target_feature,
399-
Some(sym::f16c_target_feature) => rust_features.f16c_target_feature,
400399
Some(sym::ermsb_target_feature) => rust_features.ermsb_target_feature,
401400
Some(sym::bpf_target_feature) => rust_features.bpf_target_feature,
402401
Some(sym::aarch64_ver_target_feature) => rust_features.aarch64_ver_target_feature,

compiler/rustc_feature/src/accepted.rs

+2
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ declare_features! (
161161
(accepted, extern_crate_self, "1.34.0", Some(56409), None),
162162
/// Allows access to crate names passed via `--extern` through prelude.
163163
(accepted, extern_prelude, "1.30.0", Some(44660), None),
164+
/// Allows using F16C intrinsics from `core::arch::{x86, x86_64}`.
165+
(accepted, f16c_target_feature, "CURRENT_RUSTC_VERSION", Some(44839), None),
164166
/// Allows field shorthands (`x` meaning `x: x`) in struct literal expressions.
165167
(accepted, field_init_shorthand, "1.17.0", Some(37340), None),
166168
/// Allows `#[must_use]` on functions, and introduces must-use operators (RFC 1940).

compiler/rustc_feature/src/active.rs

-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ declare_features! (
256256
(active, bpf_target_feature, "1.54.0", Some(44839), None),
257257
(active, cmpxchg16b_target_feature, "1.32.0", Some(44839), None),
258258
(active, ermsb_target_feature, "1.49.0", Some(44839), None),
259-
(active, f16c_target_feature, "1.36.0", Some(44839), None),
260259
(active, hexagon_target_feature, "1.27.0", Some(44839), None),
261260
(active, mips_target_feature, "1.27.0", Some(44839), None),
262261
(active, movbe_target_feature, "1.34.0", Some(44839), None),

library/core/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@
238238
#![feature(arm_target_feature)]
239239
#![feature(avx512_target_feature)]
240240
#![feature(cmpxchg16b_target_feature)]
241-
#![feature(f16c_target_feature)]
242241
#![feature(hexagon_target_feature)]
243242
#![feature(mips_target_feature)]
244243
#![feature(powerpc_target_feature)]
@@ -247,6 +246,7 @@
247246
#![feature(sse4a_target_feature)]
248247
#![feature(tbm_target_feature)]
249248
#![feature(wasm_target_feature)]
249+
#![cfg_attr(bootstrap, feature(f16c_target_feature))]
250250

251251
// allow using `core::` in intra-doc links
252252
#[allow(unused_extern_crates)]

0 commit comments

Comments
 (0)