Skip to content

Commit 2e3d621

Browse files
committed
add missing feature gate for rustc_safe_intrinsic
1 parent 1cbfeab commit 2e3d621

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/rustc_feature/src/builtin_attrs.rs

+6
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,12 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
740740
and it is only intended for internal use and as a desugaring."
741741
),
742742

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

0 commit comments

Comments
 (0)