@@ -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") ,
@@ -806,6 +805,10 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
806805 rustc_doc_primitive, Normal , template!( NameValueStr : "primitive name" ) , ErrorFollowing ,
807806 r#"`rustc_doc_primitive` is a rustc internal attribute"# ,
808807 ) ,
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+ ) ,
809812
810813 // ==========================================================================
811814 // Internal attributes, Testing:
0 commit comments