Skip to content

Commit 730a53b

Browse files
committed
add missing feature gate for rustc_safe_intrinsic
1 parent 1cbfeab commit 730a53b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

compiler/rustc_feature/src/builtin_attrs.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,6 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
537537
allow_internal_unsafe, Normal, template!(Word), WarnFollowing,
538538
"allow_internal_unsafe side-steps the unsafe_code lint",
539539
),
540-
ungated!(rustc_safe_intrinsic, Normal, template!(Word), DuplicatesOk),
541540
rustc_attr!(rustc_allowed_through_unstable_modules, Normal, template!(Word), WarnFollowing,
542541
"rustc_allowed_through_unstable_modules special cases accidental stabilizations of stable items \
543542
through unstable paths"),
@@ -740,6 +739,12 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
740739
and it is only intended for internal use and as a desugaring."
741740
),
742741

742+
rustc_attr!(
743+
rustc_safe_intrinsic, AttributeType::Normal, template!(Word), ErrorFollowing,
744+
"#[rustc_safe_intrinsics] declares intrinsics that are safe to use, tying it to the internal \
745+
intrinsic mechanisms."
746+
),
747+
743748
BuiltinAttribute {
744749
name: sym::rustc_diagnostic_item,
745750
// FIXME: This can be `true` once we always use `tcx.is_diagnostic_item`.

0 commit comments

Comments
 (0)