Skip to content

Commit

Permalink
add missing feature gate for rustc_safe_intrinsic
Browse files Browse the repository at this point in the history
  • Loading branch information
Noratrieb committed Sep 25, 2023
1 parent 1cbfeab commit 730a53b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion compiler/rustc_feature/src/builtin_attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,6 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
allow_internal_unsafe, Normal, template!(Word), WarnFollowing,
"allow_internal_unsafe side-steps the unsafe_code lint",
),
ungated!(rustc_safe_intrinsic, Normal, template!(Word), DuplicatesOk),
rustc_attr!(rustc_allowed_through_unstable_modules, Normal, template!(Word), WarnFollowing,
"rustc_allowed_through_unstable_modules special cases accidental stabilizations of stable items \
through unstable paths"),
Expand Down Expand Up @@ -740,6 +739,12 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
and it is only intended for internal use and as a desugaring."
),

rustc_attr!(
rustc_safe_intrinsic, AttributeType::Normal, template!(Word), ErrorFollowing,
"#[rustc_safe_intrinsics] declares intrinsics that are safe to use, tying it to the internal \
intrinsic mechanisms."
),

BuiltinAttribute {
name: sym::rustc_diagnostic_item,
// FIXME: This can be `true` once we always use `tcx.is_diagnostic_item`.
Expand Down

0 comments on commit 730a53b

Please sign in to comment.