diff options
| author | lcnr <rust@lcnr.de> | 2023-02-14 10:56:24 +0100 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2023-02-14 12:18:33 +0100 |
| commit | a2f03037b40c9c20a46020f7760ebab9e0736900 (patch) | |
| tree | 6b0a305ad4ba911d161e19cedae7b0639a2fed3d | |
| parent | 51671cd435a9b24bcbe9a3b3e3c7e98b1832dfea (diff) | |
| download | rust-a2f03037b40c9c20a46020f7760ebab9e0736900.tar.gz rust-a2f03037b40c9c20a46020f7760ebab9e0736900.zip | |
change the `marker` attribute to only_local
| -rw-r--r-- | compiler/rustc_feature/src/builtin_attrs.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/compiler/rustc_feature/src/builtin_attrs.rs b/compiler/rustc_feature/src/builtin_attrs.rs index 9b1eee32890..493a9cd89e3 100644 --- a/compiler/rustc_feature/src/builtin_attrs.rs +++ b/compiler/rustc_feature/src/builtin_attrs.rs @@ -414,7 +414,10 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[ ), // 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: BuiltinAttribute { @@ -441,7 +444,8 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[ ), // RFC #1268 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!( thread_local, Normal, template!(Word), WarnFollowing, |
