change the marker attribute to only_local

This commit is contained in:
lcnr 2023-02-14 10:56:24 +01:00
parent 51671cd435
commit a2f03037b4

View File

@ -414,7 +414,10 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
), ),
// Linking: // Linking:
gated!(naked, Normal, template!(Word), WarnFollowing, @only_local: true, naked_functions, experimental!(naked)), gated!(
naked, Normal, template!(Word), WarnFollowing, @only_local: true,
naked_functions, experimental!(naked)
),
// Plugins: // Plugins:
BuiltinAttribute { BuiltinAttribute {
@ -441,7 +444,8 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
), ),
// RFC #1268 // RFC #1268
gated!( gated!(
marker, Normal, template!(Word), WarnFollowing, marker_trait_attr, experimental!(marker) marker, Normal, template!(Word), WarnFollowing, @only_local: true,
marker_trait_attr, experimental!(marker)
), ),
gated!( gated!(
thread_local, Normal, template!(Word), WarnFollowing, thread_local, Normal, template!(Word), WarnFollowing,