@@ -537,7 +537,6 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
537
537
allow_internal_unsafe, Normal , template!( Word ) , WarnFollowing ,
538
538
"allow_internal_unsafe side-steps the unsafe_code lint" ,
539
539
) ,
540
- ungated ! ( rustc_safe_intrinsic, Normal , template!( Word ) , DuplicatesOk ) ,
541
540
rustc_attr ! ( rustc_allowed_through_unstable_modules, Normal , template!( Word ) , WarnFollowing ,
542
541
"rustc_allowed_through_unstable_modules special cases accidental stabilizations of stable items \
543
542
through unstable paths") ,
@@ -806,6 +805,10 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
806
805
rustc_doc_primitive, Normal , template!( NameValueStr : "primitive name" ) , ErrorFollowing ,
807
806
r#"`rustc_doc_primitive` is a rustc internal attribute"# ,
808
807
) ,
808
+ rustc_attr ! (
809
+ rustc_safe_intrinsic, Normal , template!( Word ) , WarnFollowing ,
810
+ "the `#[rustc_safe_intrinsic]` attribute is used internally to mark intrinsics as safe"
811
+ ) ,
809
812
810
813
// ==========================================================================
811
814
// Internal attributes, Testing:
0 commit comments