Skip to content

Commit a2f0303

Browse files
committed
change the marker attribute to only_local
1 parent 51671cd commit a2f0303

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

compiler/rustc_feature/src/builtin_attrs.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,10 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
414414
),
415415

416416
// Linking:
417-
gated!(naked, Normal, template!(Word), WarnFollowing, @only_local: true, naked_functions, experimental!(naked)),
417+
gated!(
418+
naked, Normal, template!(Word), WarnFollowing, @only_local: true,
419+
naked_functions, experimental!(naked)
420+
),
418421

419422
// Plugins:
420423
BuiltinAttribute {
@@ -441,7 +444,8 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
441444
),
442445
// RFC #1268
443446
gated!(
444-
marker, Normal, template!(Word), WarnFollowing, marker_trait_attr, experimental!(marker)
447+
marker, Normal, template!(Word), WarnFollowing, @only_local: true,
448+
marker_trait_attr, experimental!(marker)
445449
),
446450
gated!(
447451
thread_local, Normal, template!(Word), WarnFollowing,

0 commit comments

Comments
 (0)