Skip to content

Commit 92009f2

Browse files
committed
Auto merge of #116093 - RalfJung:link_llvm_intrinsics, r=oli-obk
make link_llvm_intrinsics and platform_intrinsics features internal These are both a lot like `feature(intrinsics)`, just slightly different syntax, so IMO it should be treated the same (also in terms of: if you get ICEs with this feature, that's on you -- we are not doing "nice" type-checking for intrinsics).
2 parents 085acd0 + ab83073 commit 92009f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_feature/src/active.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ declare_features! (
236236
/// Allows using the `#[fundamental]` attribute.
237237
(active, fundamental, "1.0.0", Some(29635), None),
238238
/// Allows using `#[link_name="llvm.*"]`.
239-
(active, link_llvm_intrinsics, "1.0.0", Some(29602), None),
239+
(internal, link_llvm_intrinsics, "1.0.0", Some(29602), None),
240240
/// Allows using the `#[linkage = ".."]` attribute.
241241
(active, linkage, "1.0.0", Some(29603), None),
242242
/// Allows declaring with `#![needs_panic_runtime]` that a panic runtime is needed.
@@ -245,6 +245,8 @@ declare_features! (
245245
(active, packed_bundled_libs, "1.69.0", Some(108081), None),
246246
/// Allows using the `#![panic_runtime]` attribute.
247247
(internal, panic_runtime, "1.10.0", Some(32837), None),
248+
/// Allows `extern "platform-intrinsic" { ... }`.
249+
(internal, platform_intrinsics, "1.4.0", Some(27731), None),
248250
/// Allows using `#[rustc_allow_const_fn_unstable]`.
249251
/// This is an attribute on `const fn` for the same
250252
/// purpose as `#[allow_internal_unstable]`.
@@ -526,8 +528,6 @@ declare_features! (
526528
(active, object_safe_for_dispatch, "1.40.0", Some(43561), None),
527529
/// Allows using `#[optimize(X)]`.
528530
(active, optimize_attribute, "1.34.0", Some(54882), None),
529-
/// Allows `extern "platform-intrinsic" { ... }`.
530-
(active, platform_intrinsics, "1.4.0", Some(27731), None),
531531
/// Allows using `#![plugin(myplugin)]`.
532532
(active, plugin, "1.0.0", Some(29597), None),
533533
/// Allows exhaustive integer pattern matching on `usize` and `isize`.

0 commit comments

Comments
 (0)